Home>Support>SiteOrigin Slider, different images wheter desktop or mobile view

SiteOrigin Slider, different images wheter desktop or mobile view

I´m wondering if there is a way of showing different images in my main SiteOrigin Slider depending if the user is at a desktop view or a mobile view, the reason of this is that on the desktop view the slider seems really good, but on the mobile view it seems quite narrow, so what I was thinking on was having a reference (URL) of a different image so with some code I could have something like this:

 
@media (min-width: 680px) {

.slider1 {
    slide1: url(http://qpuntto.com/wp-content/uploads/2015/06/and-Background-7.jpg) !important;
    slide2: url(http://qpuntto.com/wp-content/uploads/2015/06/and-Background-7.jpg) !important;
    slide3: url(http://qpuntto.com/wp-content/uploads/2015/06/and-Background-7.jpg) !important;
}
}

 

This images will be of course something like this

If you take a look on the last 2 slides, you will see the size is good when you are on mobile view but not on desktop view so those 2 last slides will be showed in the condition I mentioned

URL: http://qpuntto.com/tolucaymetepec/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 months ago artvaz

    is there a way of doing it?

  2. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Hi artvaz

    Thanks for the wait.

    I unfortunately can’t think of any way of doing this. Everything that comes to mind involves conditional PHP and custom templates, unfortunately, beyond what we’re able to assist with here.

    I’ve never tried but perhaps there is a conditional widget plugin that could help.

    https://wordpress.org/plugins/search.php?q=conditional+widget

    Whether something like this would work in Page Builder is another question.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More