HikaShop Content Module issues with Yootheme Pro Pagebuilder

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
8 months 2 weeks ago #337504

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.0.4
-- PHP version -- : 7.4
-- Browser(s) name and version -- : irrelevant

I place a hikashop content module on the sidebar(module position:sidebar) of my website.
and then i selected from the tab hikashop options on the display method to be visible ONLY on product view

Even though i did that. The module is holding space on the sidebar even on the other views (such as product listing, or categories listings)

Please Log in or Create an account to join the conversation.

  • Posts: 76130
  • Thank you received: 11914
8 months 2 weeks ago #337508


It's the template you're using which is still displaying the position of the module even though the module doesn't output any HTML.
Not much can be done in the module to avoid that.
The template should check whether the modules in a given position outputs HTML before displaying the position.
This page provides some code that can be used in the template index.php to check if the modules of a position return any content before displaying the position:
Advanced modules manager Pro offers the same feature to be able to hide empty modules, but apparently, it has the same issue with YooTheme templates:

The following user(s) said Thank You: epafos

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum