The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. How to best serve images optimised for mobile devices in WordPress

    How to best serve images optimised for mobile devices in WordPress

    Intermediate & Advanced SEO
    3 3 541
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Greywood
      Greywood last edited by

      Issue: Images too large for mobile devices in some articles, cannot be shrunk responsively, also should help reduce page size/improve site speed on small screen devices.

      I am thinking of switching depending on the user-agent, such as iPhone / Android devices and serving up an optimised, rediced size image. I envisage this working in the background / ie. hidden from authors so it is easy.

      Platform: WordPress

      Would like a solution or some feedback on people's experiences with this problem. No good plugins found that can handle this so would probably need to be custom coded, but no processing overhead, unless it is generated upon publication of article.

      Thanks peeps

      Keith H

      1 Reply Last reply Reply Quote 0
      • brad.s.knutson
        brad.s.knutson last edited by

        I'm a fan of using this CSS for responsive images:

        image {
             max-width: 100%;
        }

        I personally wouldn't be a fan of running a check on the user-agent and serving up an optimized image because you would probably negate some of your load time optimization from shrinking down the image by running unnecessary server processing.

        Also - by optimizing an image for mobile, you should actually be increasing the DPI because of higher resolution screens (Retina).  Shrunken down images might look awful on iPhones.

        Just my .02

        1 Reply Last reply Reply Quote 1
        • bridget.randolph
          bridget.randolph last edited by

          Hi Keith,

          I'd recommend starting by compressing the images (if you haven't already). You mentioned that you've had trouble shrinking the images responsively, but you should be able to use a plugin like WP Smush.it. Compressing images is good for desktop site speed as well.

          I'd agree with Bradley's CSS recommendation to fix the sizing issue; and for load time you can use CSS image sprites to combine multiple images.

          I don't necessarily think that there's a problem with checking for the user-agent, and serving a different version of your images, but as Bradley pointed out, they still need to look good on a high res screen.

          Cloud Four wrote a couple posts that go more in-depth into ways of dealing with responsive images (although these are not specifically Wordpress solutions):

          • http://blog.cloudfour.com/responsive-imgs-part-2/ (from 2011)
          • http://blog.cloudfour.com/8-guidelines-and-1-rule-for-responsive-images/ (from 2013)

          You might also want to consider consolidating and minifying your CSS and Javascript files if you're concerned about page load time. Here's an article with these and a couple other tips: http://searchengineland.com/how-to-tune-up-responsive-design-websites-to-improve-mobile-seo-124370

          Hope that helps!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Best SEO for table in mobile view
            KristinaKledzik
            KristinaKledzik
            0
            2
            44

          • Image URLs - best practice
            Dr-Pete
            Dr-Pete
            1
            3
            1.2k

          • Best strategy for images filenames?
            teconsite
            teconsite
            0
            4
            411

          • Question about robots file on mobile devices
            Andy-Halliday
            Andy-Halliday
            0
            3
            84

          • Best way to structure urls wordpress and Yoast?
            DonnaDuncan
            DonnaDuncan
            0
            6
            161

          • What's the Best Host For WordPress sites
            Christy-Correll
            Christy-Correll
            0
            5
            245

          • How best to structure wordpress site.
            TakeshiYoung
            TakeshiYoung
            0
            3
            750

          • Best way to duplicate a wordpress site for staging purposes?
            BedeFahey
            BedeFahey
            0
            8
            2.0k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy