Make Blog Module Featured Images Non-Clickable

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

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

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

0 Comments

Submit a Comment

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