Move home hook below the homepage tabs in PrestaShop

I want to move the hook display home HTML MODULE to the bottom and put the content tab home below the banner. I use modification of standard "default bootstrap" theme and im on PrestaShop 1.6.1.11

how to move "home" hook below the tabs?

this requires modification of index.tpl file located in theme directory
there is a code like:
{if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim}
    {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim}
        <ul id="home-page-tabs" class="nav nav-tabs clearfix">
      {$HOOK_HOME_TAB}
  </ul>
 {/if}
 <div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div>
{/if}
{if isset($HOOK_HOME) && $HOOK_HOME|trim}
 <div class="clearfix">{$HOOK_HOME}</div>
{/if}
change it to:
{if isset($HOOK_HOME) && $HOOK_HOME|trim}
 <div class="clearfix">{$HOOK_HOME}</div>
{/if}

{if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim}    {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim}
        <ul id="home-page-tabs" class="nav nav-tabs clearfix">
      {$HOOK_HOME_TAB}
  </ul>
 {/if}
 <div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div>
{/if}

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

4 comments:

  1. Hi, I need to to the same in P.S 1.7. The index.tpl is a bit different, could you help me? Thanks

    ReplyDelete
    Replies
    1. the main problem is fact, that prestashop 1.7 does not have a "homepage tabs" feature. If you've got it - this means that you use some non-default theme and it will be hard to say what you have to alter because i just dont know what theme you use and what code this theme uses.

      Delete
    2. I use the default theme of PS 1.7 but I installed that https://mypresta.eu/prestashop-17/enable-homepage-tabs.html

      Delete
    3. can I send you the code from index.tpl?

      Delete