How can I link a logo to an external URL in Dawn theme?

How can I link a logo to an external URL in Dawn theme?

LeighRC
Visitor
2 0 0

Hi - I'm trying to link the logo on my shopify site to an external website and cannot figure out how to do it. I found some directions from last year to locate header__heading-link link link--text focus-inset and replace it with the external URL but that did not work. Please let me know if there's a way to do this. Thank you! 

Reply 1 (1)

StoreWatchers
Trailblazer
205 30 39

Hello @LeighRC,

 

Greetings from the Store Watchers Support Team! Happy to help you today.

 

Go to Online Store -> Actions -> Edit code. Then find theme.liquid.

online-store.JPG

In your theme.liquid file, please paste the code below before the </body> tag.

<script>
setTimeout(() => {
var logo_link = document.querySelector('.header__heading-link');
logo_link.href = 'http://your-external-link.com';
}, '1500');
</script>

Note: please update http://your-external-link.com with your actual URL.

 

Let me know if need further assistance

Regards,
Store Watchers Support Team

StoreWatchers - Automate testing for your Shopify store in seconds


If you find my reply helpful, please hit Like and Mark as Solution
Visit us: App Store | Website | FAQs