I have a website running under Joomla 3.10.11, which displays various banner modules on all post category pages.

The goal is to NOT show any banner when the user enters the article page. Is it possible without changing any layouts?

1 Answer 1


Easy ways css ways

Put banner class like .showbanner-oncat Then in menu category add css


in menu default handle article add css


custom ways

Override the mod banner view Then do

    if ($context === 'com_content.article'}{


But these are still impact the peformance, maybe a little ms and the banner js still load if display none set up.

joomla ways

You can make config association menu to display the module only on some menu

You are full control

You need do custom model to cut the peformance loss

if ($context === 'com.content.category`){
 do dbo and pass the view.
else {return}
  • As you said, css way have performance impact so I need to explore Joomla ways preferably. Thanks for your suggestions
    – Farid
    May 17, 2023 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.