Solved

Different logo on specific pages

Eli90
Pathfinder
125 4 15

Hi,

 

I would like to know how can I change my logo in some pages? My logo is white on the homepage, as I want it to be.. but in some pages I need another one. 

 

Thank you in advance !

Accepted Solution (1)
MarinaPetrovic
Shopify Partner
552 124 180

This is an accepted solution.

The code I've sent you is not the final one, just an example. I don't know the exact code of your store - if you'd like me to do this myself, please contact me in DM. 🙂

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 15 (15)

MarinaPetrovic
Shopify Partner
552 124 180

Hi @Eli90 , you should include condition, I suppose that you're talking about the logo in your header, so you should go to edit code > sections > header.liquid, find code related to your logo and add this:

{% if product.url %}
// logo for products
{% elsif page.url %}
//logo for pages
{% elsif template == 'index'%}
//logo for homepage
{% endif %}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Eli90
Pathfinder
125 4 15

Hi @MarinaPetrovic 

 

thank you for giving me a hand. Unfortunately it didn't work 😞 

 

Not sure why...

 

My website is: https://sugar-free-eu.myshopify.com/

Pass: everit

(Debut theme) 

MarinaPetrovic
Shopify Partner
552 124 180

This is an accepted solution.

The code I've sent you is not the final one, just an example. I don't know the exact code of your store - if you'd like me to do this myself, please contact me in DM. 🙂

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Eli90
Pathfinder
125 4 15

@MarinaPetrovic it workedddd thank you!!!!!!!!!!!!!!!!!!!

fairforgood
Tourist
11 0 2

Hi, can you please elaborate on how to do this? I am using the Dawn theme and I am stuggling to have a different logo for my homepage compared to other pages. Thank you!

libertyworks
Tourist
11 0 0

@MarinaPetrovic I think the community would appreciate if you can post the exact code or correspondence with OP on here for everyone to see. There are some of us who are trying to do the same thing for our online stores. 😅 Thanks!

MarinaPetrovic
Shopify Partner
552 124 180

Hi @libertyworks, since there isn't some universal solution, it would be helpful to tell me more about your problem. What exactly do you want to achieve? 🙂

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
laila2
Tourist
7 0 0

what the solution?

ziadhalloumi
Visitor
3 0 0

I really need your help, can you solve this for me?

MarinaPetrovic
Shopify Partner
552 124 180

Hi @ziadhalloumi , there is no universal solution for this. I offer customization services. If you'd like my help please send me a message in DM.

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
ziadhalloumi
Visitor
3 0 0
Thank you so much! I just fixed it by myself 🙏 ##- Please type your reply
above this line -##
Hamas
Visitor
1 0 0

How did you do it ziyad?

GRDIRON
Visitor
1 0 0

Hi @MarinaPetrovic ...I am looking to do this project for my store. I can't seem to find out how to send you a DM...can you send me a note so we can connect on your services? Thank you, Matt

GiuseppeLuca
Visitor
1 0 0

Hi Marina,

 

do you offer customization service ?  

I also have a problem with "second logo" and I would like to replace the main logo, with the second, on some collections or specific pages or products.

Theme used: Halo

Waiting for your kind reply

MarinaPetrovic
Shopify Partner
552 124 180

Hi, yes I do. Please DM if you still need help with this. 🙂

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution