Display all sub categories in megamenu ?

Posted in: Newsmag
Post count: 12

Hello,

I encounter a problem on displaying subcategories in a mega menu. I created a category with 10 sub categories. I would like to display all the sub categories in my mega menu except that it only shows 5 (lack of space). Is there a way to display all subcategories in a mega menu?

thank you very much

Post count: 22421

Hello,

The mega-menu was created to only show 5 sub-categories on the newsmag theme. You can increase this number from the theme code if you add your preferred child category number like so: http://screencast.com/t/q9vGCz2EGP2
It will require further customization for all your menu items to show in the mega-menu but you will have to hire a developer to make the proper adjustments if you do not have the proper skills to do so.

Thank you!

Post count: 12

Perfect,

Thank you very much.

Post count: 45

Please how do I locate the td_block_mega_menu.php file?

Post count: 12

Newsmag>includes>shortcodes>td_block_mega_menu.php

Post count: 45

Thanks

Post count: 3

Thanks for this explanation. I’ve made the following change in the indicated file:

$td_subcategories = get_categories(array(
'child_of' => $category_id,
'number' => ‘6’ //$show_child_cat
));

But still only 5 sub categories are shown in the mega menu.

Bogdan B. you mention that further customization for all the menu items to show in the mega-menu are required. I am pretty new to the theme. So could you indicate what these further customizations are?

Thanks for the help!

Post count: 22421

Hi,

The modification you made is correct and it works fine on my end. However you will not be able to show a very large number of sub-categories as they are positioned horizontally under the mega-menu. That is why i mentioned it will need further customization in case you need bigger numbers displayed. That will need a menu-like structure to be created.

Please make sure you clear your cache after you make the modification if it will not apply immediately.

Thank you!

Post count: 3

Hi Bogdan,

Thanks for your quick reply. After I’ve made the change I cleared the browser cache and there was no change visible. Also I had W3 Supercache disactivated. But when I checked one day later the changes were applied. So there is probably a caching layer on the server where I am not aware of. Will check that.

Thanks again

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