#271 Posted in ‘Econa’

Latest post by Lefteris Kavadas on Friday, 16 November 2018 19:26 EET

Brendan Hedges
 Hi,
I wonder if this software can be used to deliver different background images based on device as well as in articles?

EG. I have a couple if images that are loaded via css into the background of different sections of the homepage, under the covering module position, they appear as you scrol down the page to them.

Regards, Brendan

Lefteris Kavadas
Hi,

Econa is resizing the article images and it's loading different sizes of the image in the front-end depending on the visitor device viewport. It's using the srcset attribute of the img tag.

CSS backgrounds is a different story. You already have what you need, there is no need for this plugin. Here is an example showing how you can target retina screens in a CSS media query:
@media (-webkit-device-pixel-ratio: 2) {

}


This means that you can have different background images depending on the device density and resolution. All you need to do is prepare the various background sizes and use plain CSS to load them.

Regards

Brendan Hedges
Hi.
Yes, I have considered media quires already. But before I went down that route I wondered if this product would also do background images as well as article images.
Many Thanks.

Lefteris Kavadas
No, unfortunately not.
Let me know if you have more questions.

Regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review