Make Blog Module Featured Images Non-Clickable

|

The Divi Theme's blog module displays a list of posts and, optionally, their featured images. By default, clicking on the featured images will take you to the corresponding post. Here's how to make the blog module's featured images non-clickable.

Disable the Blog Module Featured Image Links using CSS

The following CSS can be used to disable the featured image links.

.et_pb_module.et_pb_posts .entry-featured-image-url { 
    pointer-events: none; 
}
Note that this will not affect other links in the blog module, such as the post title links.

To apply the CSS to a specific blog module only:

  1. Give that module a CSS Class in "Blog Module Settings > Advanced > CSS ID & Classes > CSS Class", e.g. "non-clickable-featured-images"
  2. Replace ".et_pb_module.et_pb_posts" with ".et_pb_module.non-clickable-featured-images" in the above code

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

2 Comments

  1. Thanks for this – exactly what I needed :)

    Reply
    • You're welcome, zeb :)

      Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.