Skip to content
Public Ticket #27711

How to make the all the images in my blog posts not clickable?

Conversation thread

LillaGreen replied

Customer Reply

Thank you, it works

Tsvete

PenciDesign Supporter replied

Staff Reply

Hi,

Please modify the CSS code:

body.single .elementor-text-editor a[href$=".jpg"],
body.single .elementor-text-editor a[href$=".jpeg"],
body.single .elementor-text-editor a[href$=".png"],
body.single .elementor-text-editor a[href$=".gif"],
body.single .elementor-text-editor a[href$=".bmp"] {
    pointer-events: none;
}

Regards,
PenciDesign.

LillaGreen replied

Customer Reply

Hello,

Unfortunately this code doesn't work properly - it's no longer possible to click on the links with this coder and that's of course important!!

Please adjust the code so that only the images are no longer clickable!!

Thank you Tsvete

LillaGreen replied

Customer Reply

Hallo,

OK - this code works

Thank you very much

Greets Tsvete

PenciDesign Supporter replied

Staff Reply

Hi,

Please modify the CSS code:

body.single .elementor-text-editor a {
    pointer-events: none;
}

Regards,
PenciDesign.



PenciDesign Supporter replied

Staff Reply

Hi,

Please modify the CSS code:

body.single .entry-content img {
 pointer-events: none;
}

Regards,
PenciDesign.



LillaGreen replied

Customer Reply

Hi, I need this only for the single blog post... is the css a general rule for not opening images? Thank you

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

.entry-content img {
pointer-events: none;
}

Regards,
PenciDesign.


LillaGreen started the conversation

Conversation Start

How, How can I make all the images in my blog posts not clickable? 

In Customized "Disable Lightbox on Single Posts" option is turned on ... still the images are still opening. they should not be clickable.

Please go to Appearance → Customize → Single Posts → General → turn on the "Disable Lightbox on Single Posts" option.

Thank you

Want to join this conversation or access attachments? Sign in first.