WordPress.org

Ready to get started?Download WordPress

Forums

Simple WP Retina
[resolved] Cannot get this plugnin to work (7 posts)

  1. tommyhanus
    Member
    Posted 1 year ago #

    Hello, I downloaded the Simple Retina plugin for our website and I am a little confused as to uploading retina images. I have doubled the image size and added the @2x on the more HD images and still nothing. Could you help me on this please?

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

  2. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Tommy,
    The plugin makes it so you do not have to upload two versions of the image. Just upload the larger one. WordPress will automatically make two different sized images, one that is @2x, and one at normal size. The plugin will detect if a user is on a HiDPI screen and serve them the @2x if they are.

    Hope this helps!

  3. tommyhanus
    Member
    Posted 1 year ago #

    Hi Jon,

    The logo size for standard monitors is 300 x 56. So, I need to make this 600 x 112 and save this with @2x at the end of the file name? Example - logo@2x.png?

    If so, I upload this logo@2x.png to the website and assign the URL to the logo location, correct?

    I tried this ^^ and it just makes the logo huge on my macbook retina display. Unless I am doing it different. Once I get passed this step, I'll be okay.

    Thanks for the helpful support Jon!! =]

  4. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 1 year ago #

    So the advantage of this plugin is that it will do the sizing for you. Just upload the 600 x 112 logo to WordPress, and call <?php the_post_thumbnail( 'your-image-size' ); ?>

    The plugin will replace 'your-image-size' with an @2x version. Note that this won't work on images that are in the code of your theme. The plugin only works on images that are uploaded through the WordPress Media gallery.

  5. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 1 year ago #

    Hey tommhanus, I have not heard from you so I will assume you got everything to work properly. Let me know if that is not the case.

  6. tommyhanus
    Member
    Posted 1 year ago #

    Hey Johnathan,

    Thank you for replying! I'm not too savy with code, where does this code go? Also, I am assuming this only works in posts/pages?

    Thanks Johnathan!

  7. Jonathan Desrosiers
    Member
    Plugin Author

    Posted 12 months ago #

    The code would go wherever you are putting the image. If you are using a theme that displays featured images, it is probably already using this method. The plugin will do this automatically on any images inserted into post and page content.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.