We are required to have alt text for all images. I’ve been able to add it through the child theme for all templates except for the featured image in post template 8 which is full screen. This image is rendered through td_background.php and td_background_render.php, however, these files don’t seem to be able to be added to the child theme.
Unfortunately, I do not want to edit the core files within the Newspaper folder as we plan to update with each release.
Do you have any suggestions for a workaround that can be applied to the child theme for this template so that the background image has its proper alt text?
Hello,
Unfortunately we have no other solution except adding the alt tag in the main theme files as the wp-booster folder cannot be edited from the child theme. You need to add the alt tag like so: http://screencast.com/t/OTtZ1nE4pj6p and keep track of this modification for future updates. You can use the update patch included in every release and only replace the modified files between versions.
Thank you!
Unfortunately, I don’t want to add core files as we will have multiple people performing the future updates. Because 508 compliance is a must, I may hide that template for the time being. Are there any plans to implement alt/title tags for featured images on the rest of the templates? I had to manually add them on every template that did not use $td_mod_single->get_image('') for the image.
Hello,
Unfortunately these types of customization require editing of the core files. There is no other way. If there is no option created by the developers for something you require, it will have to be hard-coded. Even if you edit files in a child theme, it will not be update proof. If the file you edit in the child theme gets replaced in the main theme, you will have to replace it in the child theme as well and re-make your modification. There is no customization method that is update proof. Code gets changed in an update. If you do not replace your file, your update will not work as the old code cannot get replaced. Sorry, but there is no alternative at the moment. Hopefully in a future update we will add alt tags to every featured image so you will not have to edit the files.
Sorry for the inconvenience.
Thank you!