Link footer image to homepage - dawn theme

Link footer image to homepage - dawn theme

Not applicable

Can someone please provide a code to link my footer image to my website homepage. Its the last thing I need to finish. Thank you in advance!!

FeminiqueByCameron LLC - Quality Comfortable Sleepwear

 

fbcgirl24_0-1709663868359.jpeg

 

 

Reply 1 (1)

PageFly-Richard
Shopify Partner
5011 1120 1802

 

Hi @Anonymous 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

 

 

<script>
window.addEventListener('DOMContentLoaded, function() {
var anchorElement = document.createElement("a");
  
  anchorElement.href = "https://www.feminiquebycameron.com/";

  document.querySelector(".footer-block__image-wrapper").appendChild(anchorElement);
  anchorElement.appendChild(document.querySelector(".footer-block__image-wrapper img"));

})
</script>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.