Hello — i’m looking for code to display a different logo on the site’s homepage only. Origin Theme
You’ll need to add some custom code which checks for the page a user is on and then show the logo you have.
Hi. You can directly modify the code of your theme:
{% if template == 'index' %}
{% else %}
{% endif %}
Also, if you don’t know the theme code, you can add custom code to your theme page in the scripts section (change logo class):
Hi @chelux , thanks for reaching out to the community.
I saw that someone has provided you the code to make this change which is great! Just wanted to share some information with you about Theme Support, in case you don’t feel comfortable making the coding changes yourself.
Any theme in the Shopify Theme Store that is made by Shopify includes one hour of theme customization. You can find more information about this here. 3rd party themes, do not offer customization but you can connect with a Shopify Expert to help you make these changes.
If you have any questions about the information in the help doc, please let me know.
For the first section of coding, what file/folder should I place it in? Also, “url_homepage-logo” should i replace that with the Shopify url of the photo/logo i would like to use?
thanks
You can use a search in any code editor to find where your logo is. You can use the logo class to search.
You need to use the url of the image, for example https://something.com/picture.png.
I’ve been inserting in likely positions of code since you posted. And also using image url Shopify generates when uploading a photo to their server, with no luck. I’d like to find a solution, was hoping this was it. But the search continues….