Could someone inform me what I should do to prevent OpenCart from hiding the top menu when I have no categories, or I don't have categories enabled. Since I use the top menu bar for custom links through the "Custom OpenCart header menu free" module.
I use OpenCart 3.0.3.9, with the original OpenCart theme.
I appreciate your help.
Just open up "menu.twig" located "catalog/view/theme/<your-theme>/template/common", and removeorejuelajorge wrote: ↑Sun Aug 11, 2024 3:18 pmA hug for everyone.
Could someone inform me what I should do to prevent OpenCart from hiding the top menu when I have no categories, or I don't have categories enabled. Since I use the top menu bar for custom links through the "Custom OpenCart header menu free" module.
I use OpenCart 3.0.3.9, with the original OpenCart theme.
I appreciate your help.
Code: Select all
{% if categories %}
Code: Select all
{% endif %}
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
I have done the task and it did not work for me, if I disable all the categories, the top menu bar disappears. Could you share any other suggestions with me?
I attach an image. Thank you.
Attachments
img_1.jpg (163.85 KiB) Viewed 953 times
Since you mentioned that you are using an extension that adds custom links to your header menu, can you try refreshing your modifications cache at Extensions » Modifications and see if the changes are applied?
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Unfortunately it doesn't work with all possible cache clears, including the browser. The menu appears just when I enable a category.
Unfortunately it doesn't work with all possible cache clears, including the browser. The menu appears just when I enable a category.

Now it's time to learn how to do it directly in the OpenCart code.

Then please add [SOLVED] to the start of this post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: ianhaney50 and 17 guests