klotim
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Generation of responsive images which function?Thank you @jaycbrf for you reply! I’ll have a look if that’s the one i’m looking for!
Spontaneously I think it would be add_image_size, remains to be seen.Hi!
If you can change your function.php file to add some code then you will have both twitters and fb alt meta:function yoastseo_social_img_alt() {
?>
<meta name=”twitter:image:alt” content=”Your default twitter alt text here”>
<meta name=”og:image:alt” content=”Your default facebook alt text here”>
<?php
}
add_action( ‘wp_head’, ‘yoastseo_social_img_alt’ );Second reason is that class might be required for responsive css imgs
Well I could add it myself ofc but it clearly has some faulty code considering that it filters the result with only src and height/width.
WP formated my code, see my edit again if you missed that.
Tried svg with theme and does seem to effect theme svgs as well.Its not critical for me as I can edit it but future clients and other users might need the svg fix. Don’t you think?
Everything else works great.