CSS bg images using "wp_get_attachment_image_src"
-
I’m using
wp_get_attachment_image_src
inside a<div style="background:url();">
but it only shows the original version, and not the @2x?I can’t just use an img tag because I really need it as a CSS background image.
I can’t exactly use the retina media query either because that would be way too much code and messy.
Any ideas on how to solve this?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘CSS bg images using "wp_get_attachment_image_src"’ is closed to new replies.