Jump to content

Display specific shop Logo per category.


Recommended Posts

Hello Prestashop Comunity !

 

I have a pickle, i dont think it is hard to do  but i have no idea where  and how to do it, im on prestashop 1.7.X

 

Its pretty simple:

 

I have a specific category where i want to change the SHOP LOGO, 
i dont want to display brand logo or else, i want to change the main shop logo for this specific category and only this one.

 

Any idea on how to achieve that ?

 

 

Thanks guys.

 

 

 

Link to comment
Share on other sites

Try to put the code for the alternative logo after the img code for the original logo inside the header.tpl. Replace the class "logo" for the new logo to "logoalternative". Then make a css rule like this (replace 123 with the id of the wanted category):

#category img.logoalternative {
display: none;
}

#category.category-id-123 img.logoalternative {
display: true;
}

#category.category-id-123 img.logo {
display: none;
}

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