Jump to content

Hide right side modules on certain CMS pages


Recommended Posts

in this case it will be neessary to modify the module code. Unfortunately, default features don't allow to disable module on certain cms page (only for whole cms pages).

 

you will have to define if condition which will checking the id:

 

something like:

 

{if !$smarty.get.id_catategory==3}

MODULE TPL CONTENTS

{/if}

Link to comment
Share on other sites

  • 2 years later...

in this case it will be neessary to modify the module code. Unfortunately, default features don't allow to disable module on certain cms page (only for whole cms pages).

 

you will have to define if condition which will checking the id:

 

something like:

 

{if !$smarty.get.id_catategory==3}

MODULE TPL CONTENTS

{/if}

 

Hello 

 

i try to hide the blockcategory module only at one certain category 

 

i tried your code but with no luck. How can i do it ?

 

 

thanks

Link to comment
Share on other sites

  • 1 month later...
You can hide it with css. Just copy the page ID and divs for the right column modules you want to hide and set display to none. For example, a page who's page ID is 2 would be like so:
 
.cms-2 .mysidebarmodule {
display: none;
visibility: hidden;
}

and to hide the sidebar module on two pages at the same time, the css would look like:

.cms-2 .mysidebarmodule, .cms-3 .mysidebarmodule {
display: none;
visibility: hidden;
}
 

yes, all the modules in the right column ... but ONLY on 2 certain CMS pages

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...