Answer the question
In order to leave comments, you need to log in
How to set a div display condition if there is a specific module for the page (joomla)?
How to set the display condition of a div with a mobile menu button in the output layout, on pages for which the output of the module (joomla) is set?
Answer the question
In order to leave comments, you need to log in
In the theme's index.php, check the existence of modules at a particular position using the $this->countModules('position') function. Further, if there are modules, set the body to a certain class, based on which you will hide \ show this div in css.
Or, based on the above condition, directly in index.php determine whether to display the div or not.
if($this->countModules('position')) :
// тут выводите нужный html, если модули есть
endif;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question