Title: Adding link to div class
Last modified: November 23, 2019

---

# Adding link to div class

 *  [depthdesign](https://wordpress.org/support/users/depthdesign/)
 * (@depthdesign)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/adding-link-to-div-class/)
 * 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 here_below_:
 * _[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 6 years, 6 months ago by [bcworkz](https://wordpress.org/support/users/bcworkz/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-link-to-div-class%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/adding-link-to-div-class/#post-12166453)
 * 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.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [clickable](https://wordpress.org/support/topic-tag/clickable/)
 * [divs](https://wordpress.org/support/topic-tag/divs/)
 * [links](https://wordpress.org/support/topic-tag/links/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/adding-link-to-div-class/#post-12166453)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
