Remove Link From TD-Module-Thumb

Posted in: Newspaper
Post count: 4

Hi Support

Not sure if anyone here can assist, I guess this would come down as theme customization so I’m only posting on the off chance.

I would like to remove the link that appears in TD-Module-Thumb when using blocks, I would like to be left with only the title linking to whatever appears in these blocks so I don’t have 2 links to every article. I have highlighted in yellow first what I want to remove, the second item in yellow is what I want to keep.

Costas Online

I can see this code in TD_Module_4 which specifies the image dimensions but it is not clear to me how I go about removing the link, I have also looked in the block templates and I still don’t see what I could edit to achieve this small change.

<div class=”<?php echo $this->get_module_classes();?>”>
<div class=”td-module-image”>
<?php echo $this->get_image(‘td_324x235’); ?>
<?php if (td_util::get_option(‘tds_category_module_4’) == ‘yes’) { echo $this->get_category(); }?>
</div>

My site uses pages only if that makes a difference with pagebuilder and title as the template, I prefer Visual Composer also as opposed to the new Tag Div composer.

Appreciate any assistance.

regards

Wes Dunn

Post count: 22421

Hello,

The link is added for all modules at once. It is created in the get_image function which is found here: https://www.screencast.com/t/8DHl5La2
If you change that function and remove the link, you will be doing so for all modules. at once.

Thanks.

Post count: 4

Thanks for the reply and the advice Bogdan B.. Wow, I looked everywhere else apart from the Wp_Booster folder 🙂 That all makes perfect sense and I’m happy to remove the link from all blocks for testing purposes.

Thanks again

regards

Wes Dunn

Post count: 4

Thought I would update this for anyone else that may wish to do the same.
What Bogdan advised me to do removed the attachment image and not the link but he put me on the right track so I’m extremely grateful to him.

What I actually wanted to do was remove line 299 in TD_Module, this is now perfect, thanks again Bogdan 🙂

$buffy .= ‘href . ‘” rel=”bookmark” title=”‘ . $this->title_attribute . ‘”>’;

regards

Wes Dunn

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