antoineletroadec Posted January 10, 2019 Share Posted January 10, 2019 Hello everyone, i would like to disable a class name when we are on a product page (not a special one, all product) I've search in the smart variable, but for the moment, nothing works... I did this <section id="wrapper" class="{block name='layoutWrapperClass'}{if $page_name != $urls.pages.product}{l s='l-wrapper'}{/if}{/block}"> Do you have an other idea ? Thanks, have a nice day ! Antoine Link to comment Share on other sites More sharing options...
Rhobur Posted January 12, 2019 Share Posted January 12, 2019 you probably mean to do class="{if $page_name != $urls.pages.product} myclass{/if} OR {if $page_name != $urls.pages.product}class="myclass"{/if} Link to comment Share on other sites More sharing options...
antoineletroadec Posted January 12, 2019 Author Share Posted January 12, 2019 Thanks Rhobur ! The blog i've found told me to write it like that... haha have a nice day ! 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