I want to hide some modules for all pages.
How?
Note:I dont want to close module
catalog/view/theme/yourtheme/template/module
pick the module you dont want to be displayed.
open it in a editor
add at the very top of the page
Basically, you need to add every route you can think of so it doesnt show on that page.
then at the very end of the module file you need to add
pick the module you dont want to be displayed.
open it in a editor
add at the very top of the page
Code: Select all
<?php if (isset($this->request->get['route']) && ($this->request->get['route'] == 'product/product' || $this->request->get['route'] == 'product/category' || $this->request->get['route'] == 'common/home' || $this->request->get['route'] == 'information/information' || $this->request->get['route'] == '/')) { ?>
then at the very end of the module file you need to add
Code: Select all
<?php } ?>
Sorry my code was for displaying module in certain pages, try this, it should work, but as scott23 said, just disable it if you want to not show it on any page. anyway it should be
then at the bottom of the file
Code: Select all
<?php if (!isset($this->request->get['route'])) { ?>
Code: Select all
<?php } ?>
Who is online
Users browsing this forum: No registered users and 2 guests