I would like to make the entire element clickable

Hello!

I’m using PageFly for my landing page and would like to make an entire element clickable. I have three product cards that only the text is clickable. How can I make the entire element/card clickable?

I would need a code for both desktop and mobile as they are different elements depending on the device. I also have a copy of the elements on a separate page: https://coffeeinboxes.com/pages/coffee-boxes

Same as the landing page, this separate page will have an element for desktop and an a copy of the element for mobile.

Any help with this is greatly appreciated!!

Page URL: https://coffeeinboxes.com/

Thanks!

  • Here is the solution for you @SantosBaez
  • Please follow these steps:
  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before and press ‘Save’ to save it

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.

Hello there!

I pasted the code you provide before and saved it, but it’s not working. Am I pasting it in the wrong place or doing anything wrong that you can tell?

Thanks!

You added it in the wrong place. before the tag not it’s a bit below @SantosBaez .

The only I see in the code is this one:

I pasted your code before it and it didn’t work.

Can you re-paste it so I can check it again?

Hi! Sorry for the late reply! I pasted the code again before for you to check. I’m still unable to get the entire product card clickable.

@BSS-TekLabs Oh! So the product card is clickable on the page: https://coffeeinboxes.com/pages/coffee-boxes

Also, it only works on dektop screen on the page: https://coffeeinboxes.com/pages/coffee-boxes

I would like it to be clickable on a mobile screen as well.

Hi, is the problem solved, is there anything else I can help with @SantosBaez ?