I made a custom log in, register and forget password templates, to hide the theme region and wrote a css code.

the issue here when open the page using colorbox module the regions appear for few second before they hide by css code, what i need to disable the theme region in those custom pages.

any advices? Thanks.


All you need to do is search your page.tpl.php for parts like:

print render($page['region_name']);

and then wrap them in appropriate if construct, not rendering them at all on pages you don't want to see them rendered.

Alternatively, you can create files named page--user.tpl.php, page--user--login.tpl.php and so on. See this answer for details. Simply copy default page.tpl.php and remove unneeded regions from a copy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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