Jump to content

Baner position / default bootstrap /PrestaShop™ 1.6.0.9


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...