Jump to content

Creating custom header in 1.4


Recommended Posts

Hi everyone,

I'm trying to create a custom header with navigation that matches my main site.

I've done this in 1.3.5 by modifying the default theme's header.tpl but when I do the same in 1.4 nothing is displayed.

Basically, I need THIS to look like THIS.

Can anyone can help me fix the issue or come up with a better way to do this?

I'm not opposed to paying for the help if needed.


My code in 1.3.5 looks like this:

>
<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>
   {if !$content_only}
</pre>
<ul>{l s='This shop requires JavaScript to run correctly. Please activate JavaScript in your browser.'}</ul>
<br><div>



           <!--MENU-->    



Home


Dealer Program


Associate Program


Residential            


Commercial


Recreational


Us





           <!-- Header -->



                   {$HOOK_TOP}




<



My 1.4 code looks like this:

<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>
   {if !$content_only}
       {if isset($restricted_country_mode) && $restricted_country_mode}


{l s='You cannot place a new order from your country.'} {$geolocalization_country}

       {/if}
        



           <!--MENU-->    



Home


Dealer Program


Associate Program


Residential            


Commercial


Recreational


Us




           <!-- Header -->





                   {$HOOK_TOP}



Link to comment
Share on other sites

Hi,

In PS 1.4 you hav to go to preferences adn then de tag " Rendimiento " in Spanish and in Smarty, check yes to force compilation and the changes on the .tpl files will apears. Then when you finish with the changes check the " No " again.

I hope you understant what i meen.

Link to comment
Share on other sites

  • 3 months later...

What jpcalvo said above is correct, I thought I would just try to make it a bit more clear.

Most likely what is happening is that your changes are being made, but you aren't seeing them because, while you are modifying .tpl files, you need to turn off your caching and turn on your force compile in the Smarty section of the Performance Settings sub-tab (located in the Preferences tab).

After you are done with your .tpl file modifications you should turn your force compile off and turn your caching back on.

I made a video that will help you with this issue and other performance related issues. You can check it out at http://www.prestatraining.com/performance-settings-for-prestashop-version-1-4/

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