WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lolaludesign
    Member
    Posted 1 year 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.

    http://izakaya-sushi.com/

    http://wordpress.org/extend/plugins/wp-mobile-detect/

  2. Ninjamankid
    Member
    Posted 1 year ago #

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

    Johan

  3. Jesse Friedman
    Member
    Plugin Author

    Posted 1 year ago #

    @lolaludesign

    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

About this Topic