make images in blocks non clickable

Posted in: Newspaper
Post count: 20

Hey guys,

Can you please tell me if this can be done via settings or editing theme files. I am setting up main page of website and adding blocks of links to posts. I want to make only text clickable as link to post, but not image, as is currently in all block designs that i tried from cloud templates.

Thanks,
Tim

Post count: 20688

Hi,

That is not possible with a setting, the thumbnail will always direct to the post page by default, that cannot be disabled.

It could be done with some CSS, do you want this for the whole website, meaning all the modules everywhere? Or just for a specific page, block, grid, module etc. Let me know, also please provide a link to the website.

Thank you!

Post count: 20

Sure thing. Would be great to have it on all website as i want relevancy of text link to pass to destination and theme has on all modules first image link then text link. Google takes into account only first link. Another option would be to have both image and text in same “a href” tag.

Here is main page example https://jbhnews.com/

I had to disable images on the links for now.

Post count: 35449

Hi,

You can try this custom css to make the thumbs from blocks not clickable ->
.td-module-thumb a {
pointer-events: none;
}

This code need to make set in theme panel> custom code> custom css.

Unfortunately if you want to remove the links, then it can be done only from theme files, but this need to be made in to many places and most of theme will be lost after a theme update.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.