Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Hi.
Is it possible to hide breadcrumbs only on mobile devices?
Regards Kai
Offline
not in the Designer. You could do this with custom css.
Try using this in a media query:
ul.breadcrumbs {
display: none;
}
The media query will depend on what size devices you want to hide the bread crumbs. For more on writing media queries:
http://www.w3schools.com/css/css_rwd_mediaqueries.asp
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod. Wouldn't it be possible to put it in the designer so we can decide by switch if we want it or not? Like the menu is working?
Offline
not my department
as my signature says, I'm just a user with too much time on his hands.
Matt may add it it, but I know he doesn't want to start adding too much to the designer as it the interface can get cluttered quickly.
But it's easy to do with custom css.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I am also trying to reduce the size of the breadcrumbs on the mobile or get rid of them altogether. I tried the code suggested above but no response. The fact is, that the way I wrote the CSS in regards to the breadcrumbs, they show up ok on the desktop but are way too big on the phone.
my CSS:
/* Display breadcrumbs on the desktop and list items side by side -----------------------------*/
ul.breadcrumbs li {
font-size: 2rem;
padding: 60px 16px;
}
/* Add a color to all links inside the list */
.breadcrumbs a {
font-size: 2rem;
color: black;
}
.breadcrumbs li a:hover {
font-weight: bold;
color: #FFF6D5;
}
and
/* Breadcrumbs on extra small devices (phones, 600px and down) -------------------------- */
@media only screen and (max-width: 600px){
ul.breadcrumbs li {
display: none;
}
but nothing happens. I still have gigantic breadcrumbs on the mobile!
Any ideas?
Offline
this code is on line 68 of your custom css:
ul.breadcrumbs li {
font-size: 2rem;
padding: 60px 16px;
}
and it's inside of a media query that begins on line 40
@media screen and (max-width: 640px) {
that's the media query to control when text showed in either the main copy or pallet, but you never closed the media query.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
with all those media queries you use, many times the problem is that they don't get closed
When writing html or css, it helps to create your structure first, and then fill in the necessary code.
So with your media queries, start with the full query, including the opening and closing braces:
@media screen and (max-width: 640px) {
}
Then add the necessary css:
@media screen and (max-width: 640px) {
#main-copy-credits {
display:block;
}
#pallet-credits {
display:none;
}
}
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
My CSS file is now 174 lines long with 7 distinct media queries! There must be some cleaning and simplifying to be done.
The correction you suggested worked. I displaced the code relating to the breadcrumbs outside the media query and it immediately applied to the desktop and the mobile in a more suitable fashion.
Thank you.
Offline
You can combine media queries much as you like, if they're using the same values. But really, 174 lines of CSS is not cause for alarm.
Offline