Gfinfo web Posted June 30, 2023 Share Posted June 30, 2023 (edited) Hello, I am trying to create a hook for the main slider on the home page so that the number of columns dont mes up the slider dimentions. I am working with Mypresta Prestashop Hooks Manager.https://mypresta.eu/modules/administration-tools/hooks-manager.html Since I am alredy using the tabs module. I think I am missing just a point on adding the hook because the slider module is not executing correctly. It is only showing code. Child theme based on the Classic theme-> \themes\theme_1151\templates\index.tpl {extends file='parent:page.tpl'}{* feito para incluir os menus tab na home page*} {block name='page_content_container'} <section id="content" class="page-home"> {block name='page_content_top'} {hook::exec('displaySliderTopGf')} {/block} {block name='page_content'} {$HOOK_HOME nofilter} {assign var='HOOK_HOME_TAB_CONTENT' value=Hook::exec('displayHomeTabContent')} {assign var='HOOK_HOME_TAB' value=Hook::exec('displayHomeTab')} {if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim} <div class="tabs"> {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim} <ul id="home-page-tabs" class="nav nav-tabs clearfix"> {$HOOK_HOME_TAB nofilter} </ul> {/if} <div class="tab-content" id="tab-content">{$HOOK_HOME_TAB_CONTENT nofilter}</div> </div> {/if} {/block} </section> {/block} Anyone has a tip? Edited June 30, 2023 by Gfinfo web (see edit history) Link to comment Share on other sites More sharing options...
Gfinfo web Posted July 4, 2023 Author Share Posted July 4, 2023 Solved, Just had to add "nofilter" to the hook code {hook::exec('displaySliderTopGf') nofilter} 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