Jump to content

[SOLVED] Changing the category class in the Top Menu


Recommended Posts

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 by XionTech
Solved (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...