JolaMat Posted May 12, 2016 Share Posted May 12, 2016 Hi All, I would like to change position on webpage http://www.cosmetiquesdefrance.com.au of the banner as on below pictures. It means shifting from over menu under menu. Any ideas? Thank you for your help. J. Link to comment Share on other sites More sharing options...
dwojod Posted May 12, 2016 Share Posted May 12, 2016 Which part of page is to be moved? Slider? Free Shiping? Link to comment Share on other sites More sharing options...
JolaMat Posted May 12, 2016 Author Share Posted May 12, 2016 Banner free shipping should be moved down. Now is on top of the page: http://www.cosmetiquesdefrance.com.au It needs to be moved below menu like on the picture in my first post. Link to comment Share on other sites More sharing options...
dwojod Posted May 12, 2016 Share Posted May 12, 2016 You have to edit header.tpl file --> /themes/your-theme/header.tpl Cut this code: {capture name='displayBanner'}{hook h='displayBanner'}{/capture} {if $smarty.capture.displayBanner} <div class="banner"> <div class="container"> <div class="row"> {$smarty.capture.displayBanner} </div> </div> </div> {/if} And paste before close </header> Link to comment Share on other sites More sharing options...
JolaMat Posted May 13, 2016 Author Share Posted May 13, 2016 Great! Thanks for your answer. It is working on my test - localhost. Only one things I wanna this only on my homepage. Now it appears in each. Do you have solution for that? Link to comment Share on other sites More sharing options...
JolaMat Posted May 16, 2016 Author Share Posted May 16, 2016 Done! Once again, thank you for your help. The final code: <div class="center_column col-xs-14 col-sm-12"> {capture name='displayBanner'} {hook h='displayBanner'} {/capture} {if $page_name =='index'} {if $smarty.capture.displayBanner} <div class="banner"> <div class="container"> <div class="row" style=" margin-bottom: 5px;"> {$smarty.capture.displayBanner} </div> </div> </div> {/if} {/if} </div> Link to comment Share on other sites More sharing options...
dwojod Posted May 16, 2016 Share Posted May 16, 2016 if you want to display something or do something else on page should use the construction of a conditional {if $ page_name == 'index'} else {...} ... {/ if} the same would happen in the case of a category page, product, etc. I'm glad I helped;) 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