Jump to content

import another header into Prestashop?


Recommended Posts

Hey Guys.

 

Im trying to figure out how to configure my PrestaShop theme.

Smarty tpl files are new to me, since i normally work in WordPress.

I have my site on the same server running WordPress - So is there a way to either import or copy my WordPress header.php as my header in PrestaShop?

Because it should look the same.

 

Hope someone can put me on the right track :-)

Link to comment
Share on other sites

Actually it's not possible to copy it right away because presta has in the header reference to core files, js, js plugins css, variables ...

 

What you can do is to include inside your presta theme header a new css file that contains the selectors you need for the general layout. Please include the file just before </head> to make sure you override the selectors already in the initial theme.

 

Now copy the html part of your header (view source option when you view your website) after the body part. Make sure you copy the required images and fix the paths that can be different.

 

Take also care for the footer for closing the eventual div elements

 

It's not easy in the beginning but you will get used to it fast

  • Like 1
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...