Jump to content

Prestashop 1.6 How swap two columns in header.tpl


Recommended Posts

Your idea is change the left column to the right?

 

If  this true, you don't need change nothing in code, mostly of modules executed in the left column can be executed in the right column also, so, just need...

 

> Go to your Back Office > Modules > Positions

> Search the block "displayLeftColumn"

> Unhook all modules of this block

> Now transplant each of this modules to the "displayRightColumn"

 

If your theme have disabled the right colum, you can turn on at: Back Office > Preferences > Themes > Advanced settings

Link to comment
Share on other sites

Thanks, 

But the little that I wanted. I need to swap the left column to the central column (only in the code), the template itself the home page should not change (visible to users). Now on the site like on the 1 screenshot but I need make like on the 2 screenshot.

 

Once again, the visible website template users should not change. Only code of theme.

 

post-765654-0-01131700-1467088577_thumb.png

post-765654-0-65198100-1467088577_thumb.png

Link to comment
Share on other sites

You need move the code

{if isset($left_column_size) && !empty($left_column_size)}
<div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div>
{/if}

To the footer.tpl, after the line

</div><!-- #center_column -->

And then you could be able to move the view as now is with an interesting options in bootstrap (offset, push and pull), documentation here: http://getbootstrap.com/css/#grid-responsive-resets

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...