presto1.7.4 Posted October 30, 2018 Share Posted October 30, 2018 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 More sharing options...
presto1.7.4 Posted October 31, 2018 Author Share Posted October 31, 2018 Hi Up to this thread, anyone ? Link to comment Share on other sites More sharing options...
presto1.7.4 Posted November 5, 2018 Author Share Posted November 5, 2018 UP, really nobody here ? Link to comment Share on other sites More sharing options...
JBW Posted November 5, 2018 Share Posted November 5, 2018 You have to put some logic into your template. In 1.7. classic template this would be in \themes\classic\templates\_partials\header.tpl Link to comment Share on other sites More sharing options...
presto1.7.4 Posted November 5, 2018 Author Share Posted November 5, 2018 JBW, thanks a lot for the lead., can you extrapolate a bit or give me an example ? Link to comment Share on other sites More sharing options...
rictools Posted November 7, 2018 Share Posted November 7, 2018 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 More sharing options...
presto1.7.4 Posted November 7, 2018 Author Share Posted November 7, 2018 Awesome @rictools ill test this in the next few days , i will report back here for sure . Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now