Jump to content

[SOLVED] Adding a Graphic Header to the Category and Product Pages


Recommended Posts

Hi,

I understand I can add an image for each category page in the admin section.

In addition I'd like to be able to add an additional jpg / gif to every page under the Category heading

For example 'FREE Shipping on all items' - the same image on every page

I don't understand php at all, but I guess there must be a way to add a line of php code to display a graphic by updating the product.tpl and the category.tpl files in my themes folder.

Hope someone can point me in the right direction on this one?

Also what the code needed would be to display for example - freesshipping.gif

Thanks in advance

Brian

Link to comment
Share on other sites

Edit category.tpl in your theme's directory and add the following after line 15 (in PrestaShop v1.3.1) to add an image just below the title:

<img src="{$img_dir}free-shipping.gif" alt="Free Shipping" />



Then put free-shipping.gif in the img directory in your theme.

Link to comment
Share on other sites

  • 5 weeks later...
Edit category.tpl in your theme's directory and add the following after line 15 (in PrestaShop v1.3.1) to add an image just below the title:

<img src="{$img_dir}free-shipping.gif" alt="Free Shipping" />



Then put free-shipping.gif in the img directory in your theme.



Hi rocky,

And to have a different "animated GIF" image per category?

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