AshbridgeWS Posted May 9, 2016 Share Posted May 9, 2016 Hi, I am trying to make my PrestaShop home page full-with so have changed <div id="columns" class="container"> in the header.tpl file to <div id="columns" class="container-fluid"> which works great but effects every other page too which is not what I am after. Is there some kind of code I can wrap around this line in particular to say if the page is Index or Home then use the container-fluid class but for all other pages use container? Link to comment Share on other sites More sharing options...
Cvalya Posted May 11, 2016 Share Posted May 11, 2016 Hi, i think you should edit smarty template in header.tpl and insert additional code like this: <div id="columns" class="{if $page_name == 'index'}container-fluid{else}container{/if}"> 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