If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I would like to put some text into the alt funtion. I have put it into the slider entry but when the page loads and i check the page source the code looks like…
<img src='img source' alt='' />
Am I doing something wrong?
any help appreciated
The theme is behaving as per the default functionality. There is no built in option to define the ALT text, and the default output (set in /framework/helper_functions/kriesi_post_thumb.php) is:
$defaultimage = $linkwrap."<img ".$img_attr_string." src='".$image_URL."' alt='' title='".get_the_title()."' height='".$option['wh']['height'] ." ' width='".$option['wh']['width'] ."' />".$linkwrap;
You could adapt the code to add an option for the ALT text.
The topic ‘Avia Slider alt image text’ is closed to new replies.