Support » Plugin: Site Background Slider » [Plugin: Site Background Slider] Feature request: use WP media query to serve smaller backgrounds to

  • Hi – i’m enjoying the plugin.

    I’d like to use it to serve backgrounds for the mobile version of the site too, but the fullscreen images take too long to load and are inappropriately large for such a small screen.

    It seems like if site background slider pulled tagged images from the WP Media Library, it could somehow take advantage of the various sizes in the media library to serve the appropriate size image based on the screen (body) dimension.

    In any case, it seems that Site Background Slider would benefit from being able to retreive tagged images from the media library, and not to be dependent on a designated folder.

    However, maybe you tried it and that query was too slow. I don’t know!

Viewing 1 replies (of 1 total)
  • Actually nevermind the above. Did more research!
    What would work much more easily is to add in an option to prepend

    to the url of the images in the backgrounds folder, when they are called. This sends them through the free Sencha Src service which delivers the right size image for the screen size. The finished image url looks like this:

    I’ve hacked my copy of the plugin so it appends this to the images, but it would be great to add the feature, as a form on the Site Background Slider Options page, for URL prefixes.

    If you’re interested in how it works, check out the full docu at Sencha Io Src

    I am not associated with that company, it’s just the only thing I found that will crunch down those background images to mobile size and serve them up on demand. It doesn’t reduce the images on desktop browsers, they get the prefix too but they are served full-size.

    The plugin for WP does not affect the background images on SBS. that’s why i had to try the hack.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Site Background Slider] Feature request: use WP media query to serve smaller backgrounds to’ is closed to new replies.