Jump to content

How to hide the hook "displayLeftColumn" only on mobile?


popescu.laurentiu

Recommended Posts

On 11/25/2022 at 4:19 PM, joseantgv said:

In which pages do you want to hide it?

All Pages. 
 

On 11/25/2022 at 7:37 PM, endriu107 said:

Try in layout-both-columns.tpl change this:

{hook h="displayLeftColumn"}

to this:

{if Context::getContext()->getDevice() != 4} {hook h="displayLeftColumn"} {/if}

 

Clear cache after changes.

I will try this and let you know. 
 

Thanks for the help

  • Like 1
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...