Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-05-11 04:45:38

lulu99
Member
Registered: 2014-07-14
Posts: 45

Hiding Breadcrumbs only on mobile devices

Hi.

Is it possible to hide breadcrumbs only on mobile devices?

Regards Kai

Offline

#2 2016-05-11 04:50:05

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Hiding Breadcrumbs only on mobile devices

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

#3 2016-05-11 05:15:19

lulu99
Member
Registered: 2014-07-14
Posts: 45

Re: Hiding Breadcrumbs only on mobile devices

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

#4 2016-05-11 06:07:33

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Hiding Breadcrumbs only on mobile devices

not my department wink
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

#5 2019-11-12 23:27:21

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Hiding Breadcrumbs only on mobile devices

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!

pideja.ca

Any ideas?

Offline

#6 2019-11-12 23:42:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Hiding Breadcrumbs only on mobile devices

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

#7 2019-11-12 23:50:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Hiding Breadcrumbs only on mobile devices

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

#8 2019-11-12 23:54:21

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Hiding Breadcrumbs only on mobile devices

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

#9 2019-11-15 16:28:43

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Hiding Breadcrumbs only on mobile devices

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.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB