Issue about megamenu and subcategories

Posted in: Newsmag
Post count: 11

Hello, I have a doubt:

I know that is not possible to display a subcategories on megamenu, but I need to set each post with a categorie with 3th level as least. Is it possible to tag the post with subcatories without to display it on menu?

Thanks.

Post count: 6535

Hi

I am not sure I understand you’re request so please provide more details about what you’re trying to do, also some screens pointing the desired result will help, so I can duplicate the situation on my side and get back to you with a more accurate answer.

Thanks!

Post count: 11

Ok, let me show you an example:

I have the following categories with subcategories on my site:

Praias do Nordeste > Praias da Bahia > Praia de Maragojipe

1 category with 2 subcategories. I want to display on megamenu only first level of category (Praias da Bahia), but when I set my post until the last subcategory (level 3), it shows in megamenu bottom with the others categories:

http://www.screencast.com/t/FyDljrMYf

Post count: 6535

Hi

You can achieve by adding the exclude argument in get_categories() function like here: http://screencast.com/t/RCAIqi5TLpOi Just replace the indicated numbers with the ids for the categories that you want to exclude. To get the category id follow this link: http://screencast.com/t/GfyIJar78

Hope this help.
Thanks!

Post count: 11

Perfect! It worked.

Thank you very much.

Post count: 11

Sorry but I have another issue with megamenu. I´ve noted that the maximum of links on megamenu bottom is 5, is there any way do increase this number?

Thanks.

Post count: 6535

Hi

To increase the subcategories number displayed in mega menu just increase this value: http://screencast.com/t/j5E9nnid6p7

Let me know how it goes!
Thanks!

Post count: 11

Hi Andrei,

I have another question like this. How to increase the subcategories number displayed on category page?

Post count: 6535

Hi

Are you referring at these subcategories: http://screencast.com/t/EHKIbwQdtG If so there is no limit for them. If this is not what you mean please provide more details bout what you’re trying to do so I can inspect it closer an get back to you with a more accurate answer.

Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newsmag’ is closed to new topics and replies.