amey8425 Posted January 10 Share Posted January 10 I would like to hide the subcategory pop-up from the hover menu. Any help would be greatly appreciated. Thank you! Link to comment Share on other sites More sharing options...
Alexandre Carette Posted January 10 Share Posted January 10 Hello amey8425, could you please provide the URL of your site so I can take a look? Do you have a specific example in mind? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted January 10 Share Posted January 10 Please can you specify PS, PHP and theme versions Link to comment Share on other sites More sharing options...
amey8425 Posted January 10 Author Share Posted January 10 Hi, I want the subcategories to appear in the left menu but not in the main menu. Please refer to the following screenshots. Theme 8.1.6 Hide from the main menu Keep it appearing in the left column I found a workaround using categories and features, but I believe it doesn't work for subordinate or Level 3 categories. Link to comment Share on other sites More sharing options...
Alexandre Carette Posted January 11 Share Posted January 11 (edited) You can use the ps_categorytree module, and you can edited your menu in ps_mainmenu Edited January 11 by Alexandre Carette (see edit history) Link to comment Share on other sites More sharing options...
amey8425 Posted January 11 Author Share Posted January 11 Hey @Alexandre Carette I guess it doesn't help to hide the subcategories from the main menu and show them only in the left menu. Either both will be visible or both will be hidden. Link to comment Share on other sites More sharing options...
amey8425 Posted January 11 Author Share Posted January 11 @Prestashop Addict PHP version: 8.1.29 PrestaShop version: 8.1.6 Theme - Classic Link to comment Share on other sites More sharing options...
WebDesk Solution Posted February 5 Share Posted February 5 (edited) Hello, To remove the sub-menu popup from the main menu, please follow these steps: Step 1: Open the ps_mainmenu.tpl file located in your theme directory: themes/{{your_theme}}/modules/ps_mainmenu comment or remove the code from the file: {if $node.children|count} <div {if $depth===0} class="popover sub-menu js-sub-menu collapse" {else} class="collapse" {/if} id="top_sub_menu_{$_expand_id}"> {menu nodes=$node.children depth=$node.depth parent=$node} </div> {/if} Please review the screenshot for your reference: https://prnt.sc/EPQZTT2L-9V2 Save the changes and clear the cache from the back office. Visit the frontend to verify the submenu popup rwas emoved from the header. We hope this solution resolves your issue!! If you find our reply helpful, please hit Like it. A North American PrestaShop Development Agency that delivers powerful results, innovation, and secure digital transformation. If you find our reply helpful, please hit Like it. Thank You, WebDesk Solution Support Team Get a Free Quote | Email | PrestaShop Partner | PrestaShop Development Agency | Call Us 877.536.3789 Location: 150 King St. W. Toronto, ON M5H 1J9 Edited February 5 by WebDesk Solution Update new quote (see edit history) 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