Hello,
I’m trying to make visible all the sub-categories on my mega menu, but it looks like the limit is 4. I’m not using a Cloud Library template but the default one. I checked the td:config.php file and the number of “show_child_cat” is set to 30. There doesn’t seem to be an option to change this on the theme panel.
How can I increase the limit?
Thanks.
Nik
Hi,
The easiest way will be to use TagDiv Cloud Library -> https://tagdiv.com/what-is-the-cloud-library/
Check out the New Header Main Menu with Newspaper Theme ->https://tagdiv.com/header-main-menu-newspaper-theme/
If you do please change the default limit of 4 sub-categories in the mega-menu settings
– http://prntscr.com/mx7i6k
This would explain why the other sub-categories are not shown. Also be sure that the sub-categories have posts in them.
If you are not using tagDiv Cloud Library, then you need to make some manually change in a file, please go in your site host open wp-content > theme> includes> shortcodes and open td_config.php wit an editor ( notepad++) go at 7760 line and increase the “show_child_cat” ( https://www.screencast.com/t/eI6xS9X5SF5 ), by default it set to show only 30 categories , after that save the change on the file and refresh your web page.
Also you can check this topic abut adjust the number of posts in mega menu -> https://forum.tagdiv.com/topic/adjust-the-number-of-posts-in-megamenu/
Thank you.
I can not find it in version 9.7
https://www.screencast.com/t/eI6xS9X5SF5
Where is he now?
thanks
-
This reply was modified 7 years by
carlosll.
Hi,
Please go in wp-content/plugins/td-composer/legacy/Newspaper/init.php
-> https://www.screencast.com/t/mm3U62HhAtC
Thanks.
Hi,
Please try this path ->wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php
-> https://www.screencast.com/t/ybZqp2wu1oHj
Thank you!
Hi,
In the last version in no need to make changes in the files, you can use a cloud header for this.
In order to set the number of subcategories that you want to show in mega menu, you can use a header template from tagDiv Cloud Template use the header manager and set the limit number -> http://prntscr.com/oxid1x
If this is not working, or is not what you mean, please provide me a link to see your mega menu, also please provide some screenshots with the settings you’ve made for mega menu and the parent category for your subcategories, in this way I will be able to inspect the problem and provide you an working answer.
Thank you!
