WP Mobile Detect
[resolved] Resize header for mobile devices (3 posts)

  1. lolaludesign
    Posted 3 years ago #

    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.



  2. Ninjamankid
    Posted 3 years ago #


    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">


  3. Jesse Friedman
    Plugin Author

    Posted 3 years ago #


    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Mobile Detect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic