Tagged Questions
1
vote
2answers
304 views
Removing width and height attributes from wp-get-attachment
I'm using this http://www.ghosthorses.co.uk/production-diary/removing-inline-img-dimensions-for-responsive-wordpress-websites/ to remove the height and width attributes of images. Everything works ...
1
vote
1answer
537 views
Adding width and height to wp_get_attachment_image_src
I'm trying to add the width and height attributes to the wp_get_attachment_image_src. Why is this returning width and height:0?
<?php
$image = wp_get_attachment_image_src( get_post_thumbnail_id( ...
0
votes
1answer
231 views
Remove height attribute from wp_get_attachment
I found this great solution: Stop wordpress from hardcoding img width and height attributes
But I was wondering if I could do it only in one specific case and not in all the site because it messes up ...