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 2020-06-02 00:53:19

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Mobile menu suppresssion

Hi Rod,

I swear I had this working recently by following advice in your tips and tricks with this code added to my custom css file.
/*Mobile menu suppression */
#page_pallet_T1 .menu-item:nth-child(2) > .sub-menu {display:none;
}

The cPanel editor whinged about .menu item and .sub-menu being overqualified with an li and ul prefix but taking them out does not seem to make a difference for me.

Does this code still work for you? I'm using PHP 7.2.31
Thanks.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#2 2020-06-02 01:02:05

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

Re: Mobile menu suppresssion

It works fine for me.
Your site isn't currently using that css though.

Can you post a link to a site using that css?

I don't think php version has any affect on 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

#3 2020-06-02 01:37:08

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Mobile menu suppresssion

That is weird as I have just been in the domain editing that css in the link in my signature. I’ll go and login again but the file is custom-copyright.css


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#4 2020-06-02 01:59:47

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Mobile menu suppresssion

Hi Rod,
I've just looked at all my page templates and they all point to custom-copyright.css. I can see that the style inspector in the Firefox picks that up with 9 rules and also a css with 2 rules which the the Raleway font that I use.
The custom-copyright.css file contains these lines
/* If your page background-color is red after enabling the PHPlugins function, then you know it's working.
* Delete this after confirmation, because it's hideous :
*/


.my-popup {
  color: rgb(255,255,255);
  background: #2a2a4a;
  background: linear-gradient(#2a2a4a, #37377F);
   padding-top: 10px;
   padding-bottom: 5px;
   margin-left: 12px;
   margin-right: 12px;   
    }
.popup-title {
    background: #2a2a4a;
    background: linear-gradient(#2a2a4a, #37377F);
    padding: 10px;
    color: white;
}
#popup {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}
#popup p {
    margin-left: 12px;
    margin-right: 12px;
}
#my-popup {
    padding-left: 0;
    padding-right: 0;
}
#my-popup p {
    margin-left: 12px;
    margin-right: 12px;
}
@media screen and (min-width:1025px) {
    #popup {
        max-width: 50%;
    }
/*Pop-up Close button styling for Backlight */
    #popup .fancybox-close-small {
        color: white;
    }   
}
#venue, #dates {width:25%;
}
/*Mobile menu suppression */
#page_pallet_T1 .menu-item:nth-child(2) > .sub-menu {display:none;
}


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#5 2020-06-02 02:06:19

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

Re: Mobile menu suppresssion

the problem is a "misspelling" in the selector.

You have:

#page_pallet_T1

it should be

#page__pallet__T1

with two underscores


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2020-06-02 02:12:47

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Mobile menu suppresssion

Thanks Rod.
I'll have to read up on double underscores.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#7 2020-06-02 02:19:15

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

Re: Mobile menu suppresssion

Nothing special about double underscores, it’s just what Matt chose for that ID (you’ll find it elsewhere in Backlight too)


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 2020-06-02 02:59:29

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Mobile menu suppresssion

OK, thanks.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

Board footer

Powered by FluxBB