How to hide alt text on featured image

Posted in: Newsmag
Post count: 56

Hello,

When I hover the mouse over featured image, a tooltip with alt text appears like this:

http://take.ms/sjDGN

You can test it on any post:

https://www.securerr.com/linux-security-tips/

How can I stop this alt text tooltip from appearing?

Thanks.


Alex

Post count: 6535

Hi

The alternative text it’s the title for the image, if you want to remove it you need to modify td_module_single_base.php file like here: http://screencast.com/t/xUebv4vD

Thanks!

Post count: 56

Hello,

Thanks! But as I understand, this modification won’t preserve after an update. How can I add it so a child theme?

Thanks.

Post count: 6535

Hi

You can use the child theme in that case and you can find the documentation here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

Post count: 56

Hello,

Thanks, I edited the file, it helped.

So basically what I have to do to include the modifications into child theme is to copy the file into child theme folder?

Post count: 56

Do I have to preserve folder structure (create respective folders inside the child theme folder) or just copy the file into the root child folder?

Thanks.

Post count: 1291

Hi,

The structure must be maintained, if the file is in the main theme root you can copy it in the child theme root.

Thank you!

Post count: 56

Thank you!

So is it correct to use this structure:

http://take.ms/HaiuC

?

Post count: 1291

Hi,

Yes, the path is correct. To check if it on the right spot just change something inside the file and see if it applies on the site.

Thank you!

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