Jump to content

Top menu


phil044

Recommended Posts

You need to add in file header.tpl this hook in place where you want to display this hook:

 

{capture name='displayNav'}{hook h='displayNav'}{/capture}
	{if $smarty.capture.displayNav}
		<div class="nav">
			<div class="container">
				<div class="row">
					<nav>{$smarty.capture.displayNav}</nav>
				</div>
			</div>
		/div>
	{/if}
Link to comment
Share on other sites

I have this code in the header but i don't see Displaynav in POSITIONS, i think no module are in this hook and i have reinstall some modules but no succes.

 

I think this bug come from the update 1.5 to 1.6, so i will reinstall prestashop manualy by ftp

Link to comment
Share on other sites

In PrestaShop 1.6 this is not necessery because if any module have function displayNav in tamplate supposed to work {hook h='displayNav'}, this is works also with other custom hooks.

 

this hook was missing problably during the automatic update to the last version of prestashop

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