How to make Featured Product image and title clickable on Motion theme?

alex421
Tourist
3 0 0

Hello community,

 

I think this is a common question but I haven't seen an answer that works for Motion theme. I would like the featured product that I have on my home page to link with its product page. 

 

Would appreciate if someone could share the code that would do the job. 

 

Thanks!

 

https://www.petgem.com.au/

Replies 3 (3)
alex421
Tourist
3 0 0

Thanks a lot for your reply, Saad! I am still a little lost, would you mind sharing a screenshot so I can see exactly what I am trying to change? 

isadora99
Tourist
3 0 1

<a href="YOUR_PRODUCT_PAGE_URL">
<img src="URL_TO_YOUR_FEATURED_PRODUCT_IMAGE" alt="Featured Product">
</a>
<h2>
<a href="YOUR_PRODUCT_PAGE_URL">Featured Product Title</a>
</h2>

 

Replace "YOUR_PRODUCT_PAGE_URL" with the actual URL of your featured product page and "URL_TO_YOUR_FEATURED_PRODUCT_IMAGE" with the URL of your featured product image.

Make sure to find the appropriate section in your Motion theme's code where the featured product is displayed, and then wrap the image and title with the <a> tag as shown above.

Hope this helps!

alex421
Tourist
3 0 0

Thanks for your reply! Can you elaborate on what the appropriate section of the code is? There are many instances where 'featured product' is displayed so I am not sure which is the right one