XionTech Posted January 28, 2021 Share Posted January 28, 2021 (edited) I have a top menu item that has a class of 'category full' which makes it a multiple column popover and a different font. My first two menu items are just 'category' and that's what I want the 3rd to be. If I change it via chrome tools, it looks good. So why is that 'full' being added to this menu item? the TPL has: <li class="{$node.type} So...where is node.type changed for the different menu items? Edit: I'm beginning to think it's my category tree has some issues. Trying to move subcategories, create new ones etc...it all seems to be very glitchy. Reading older posts suggest Regen Cat Tree module but I see nothing like that for 1.7? I like 1.7 but so much changed, it's very hard to find relevant information on fixing things... Edited January 28, 2021 by XionTech Solved (see edit history) Link to comment Share on other sites More sharing options...
XionTech Posted January 28, 2021 Author Share Posted January 28, 2021 Rubber Ducky debugging I guess... If any of the categories have subcategories, then the multiple columns style is implemented which I assume adds the 'full'. I was hiding the subcategories using: .top-menu[data-depth="2"]{ display:none!important; } However, because the class is affected, I need to find which script is adding 'full' to the class. Tried to hardcode the ps_mainmenu.tpl but the 'full' is added afterwards somewhere. Link to comment Share on other sites More sharing options...
XionTech Posted January 28, 2021 Author Share Posted January 28, 2021 Finally found it... Global.js for my theme. $('.top-menu[data-depth="1"] li:has(ul)').parent().parent().parent().addClass('full'); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now