WordPress.org

Forums

Simple WP Retina
[resolved] Does this work on tiled background images? (5 posts)

  1. MDesigner0
    Member
    Posted 1 year ago #

    First off, nice job on this plugin! Makes retina a no-brainer!

    I tried this on a tiled background image, and it doesn't seem to work. Does the plugin not work on tiled backgrounds, or am I doing something wrong?

    Thanks!

    http://wordpress.org/extend/plugins/simple-wp-retina/

  2. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the kind words MDesigner0!

    Can you tell me more about how you are applying the background? Is it in your theme's CSS, or are you using the WordPress Custom Backgrounds feature?

  3. MDesigner0
    Member
    Posted 1 year ago #

    I'm applying the background via my theme's settings.

  4. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 1 year ago #

    I can't say for sure because I do not know how your theme is coded, but the plugin will not work with WordPress Custom Backgrounds. This was intentional because at the time, there was discussion about including that in core.

    You will probably have to just override it on your own. Here is a simple example of how to accomplish this.

    @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
        only screen and (-o-min-device-pixel-ratio: 3/2),
        only screen and (min--moz-device-pixel-ratio: 1.5),
        only screen and (min-device-pixel-ratio: 1.5) {
           body {
                background-image: url('images/background@2x.png');
                background-size: ##px ##px;
           }
    }

    For the background-size property, just replace the #s with the size of the regular sized background image.

  5. MDesigner0
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple WP Retina
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.