popescu.laurentiu Posted November 25, 2022 Share Posted November 25, 2022 Hi, I need help trying to hide the hook "displayLeftColumn" only on mobile devices. Link to comment Share on other sites More sharing options...
JBW Posted November 25, 2022 Share Posted November 25, 2022 I'm not aware of a feature to hide hooks but you can disable the hooked modules on mobile Link to comment Share on other sites More sharing options...
joseantgv Posted November 25, 2022 Share Posted November 25, 2022 2 hours ago, popescu.laurentiu said: Hi, I need help trying to hide the hook "displayLeftColumn" only on mobile devices. Or you can hide it by CSS. Which is your page? Link to comment Share on other sites More sharing options...
popescu.laurentiu Posted November 25, 2022 Author Share Posted November 25, 2022 https://www.sigmanortec.ro Link to comment Share on other sites More sharing options...
joseantgv Posted November 25, 2022 Share Posted November 25, 2022 In which pages do you want to hide it? Link to comment Share on other sites More sharing options...
endriu107 Posted November 25, 2022 Share Posted November 25, 2022 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. 1 1 Link to comment Share on other sites More sharing options...
popescu.laurentiu Posted November 27, 2022 Author Share Posted November 27, 2022 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 1 Link to comment Share on other sites More sharing options...
popescu.laurentiu Posted November 28, 2022 Author Share Posted November 28, 2022 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. Job done! Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now