Nicolas Patrouillaul Posted January 5, 2017 Share Posted January 5, 2017 Hi, I'm trying to apply this banner only if the website is in French. But it's not working. Do you know how to fixed it? {if $language.iso_code=="FR"} <div class="notification-bar"> <div class="text" style="padding-top: 10px;text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px;color: #b8b7b7; vertical-align: middle; width: 100%; text-align: center; background: #f9f9f9; font-weight: lighter; float: right;font-family: helvetica; font-size: 9px;">Livraison gratuite à partir de 250€</div> </div>{/if} THANKS ! Link to comment Share on other sites More sharing options...
yaniv14 Posted January 7, 2017 Share Posted January 7, 2017 Try: {if $lang_iso == 'fr'}.....{/if} Link to comment Share on other sites More sharing options...
ventura Posted January 8, 2017 Share Posted January 8, 2017 Try with lang_iso $lang_iso or lang id $lang_id Link to comment Share on other sites More sharing options...
Nicolas Patrouillaul Posted January 20, 2017 Author Share Posted January 20, 2017 Thanks ! this is working : {if $lang_iso=="fr"} . I would like to apply this banner/popup only if the website is in French AND Only on the home page (One particular page only). Do you know how to do it ? Thanks Link to comment Share on other sites More sharing options...
yaniv14 Posted January 20, 2017 Share Posted January 20, 2017 Try: {if $lang_iso == 'fr' && $page_name == 'index'} 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