Skip to content

Tag: image

Display images with VueJS and Laravel

I am trying to display images with VueJS, but it either prints {{ activity.image }} or shows a compilation error. These are the attempts: How do I do it? Answer I assume activity.image is coming from the JavaScript, since you’re using the dot notation. You can use v-bind:src=”activity.image”…

WordPress add responsive srcset header image to theme

WP introduced support for srcset in version 4.4 for Thumbnails and Post images. But I can’t find a way to make the page header responsive. Here is how I embed the Page header: This loads the header image (which can be uploaded in the backend > Design > Customise) in an src. But I’d rather in…