• Hello,

    First-time forum user here. I’m creating a booking site for a digital detox company and I need a little customization help. My client asked if I could make a div surrounding an event listing completely clickable. Right now, only some of the text and the image next to the listing are clickable. See herebelow:

    [redundant link redacted]

    The div I want to make into a link is class=”qodef-event-list-item-content”

    I’m using a theme called X-trail. Hopefully, this is enough information. Thank you.

    • This topic was modified 5 years, 3 months ago by bcworkz.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The short answer is you wrap the div in an anchor tag element. How that is actually accomplished depends on how that post listing got there in the first place. Whatever generated it needs to be altered accordingly. If it’s a template, alter the template. If it’s page content, alter the content. The image and title already have anchor tags. You don’t need the title anchor since it’s within the targeted div. You could move the related tags to be outside the target div instead of inside the H3 tags.

    Because you are using a commercial theme, that is the limit of the help we can provide here since we cannot access your theme’s source code. I suggest you contact your theme’s support channel for further clarification on how and where to make this change.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding link to div class’ is closed to new replies.