How can I change my logo on specific pages?

Solved

How can I change my logo on specific pages?

Eli90
Pathfinder
125 4 16

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
559 124 193

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 17 (17)

MarinaPetrovic
Shopify Partner
559 124 193

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 16

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
559 124 193

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 16

@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
559 124 193

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
559 124 193

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

Indre_Mi
Tourist
3 0 0

Hello, how could I contact you? Somehow on your profile I don't have a possibility to text you

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
559 124 193

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
Jayden12
Visitor
1 0 0

Hi Marina, I cant seem to find how to DM you to discuss services, are you able to send me a message?