Support » Plugin: WP Mobile Detect » Resize header for mobile devices

  • Resolved lolaludesign


    I love your plug-in and for the most part, it’s helping me make my theme behave on mobile devices.

    One thing I’m having trouble with, however, is resizing the header image for mobile devices. Is there a shortcode I can use? If not, what do you suggest? I use a program to generate my WP code, so if I need to edit something, I need very clear directions.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    you need to set the images Width in percent instead of pixels and Height to auto. Code would go something like this:

    <img src=”mypicturesname.gif” style=”max-width: 100%;height: auto”>


    Plugin Author Jesse Friedman



    To be clear this plugin is made for content or functional switches. It is not a replacement for standard responsive strategy or simply using media queries, which seems like a simple fix for your problem.

    Glad you like the plugin though 🙂

    If you have any other things you like to change in the theme you can use the PHP functions outlined in the faq

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Resize header for mobile devices’ is closed to new replies.