WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
[resolved] [Plugin: WPtouch] Possible to control placement of the #switch div in desktop theme? (5 posts)

  1. slurve
    Member
    Posted 1 year ago #

    Is it possible to control where the MOBILE THEME ON/OFF div is placed in the desktop theme? I have a custom theme set up and and WPTouch is dropping the div just before the </body> tag, which makes sense... but I'd rather move it up a bit higher so it's contained within another wrapper div. Anyone know if something like this is possible with the free version of WPTouch? Thanks in advance.

    http://wordpress.org/extend/plugins/wptouch/

  2. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    That is not supported at this time. The switch link 'hooks' to wp_footer. So it's placement also depends how the desktop theme calls wp_footer in footer.php.

  3. slurve
    Member
    Posted 1 year ago #

    Got it. Thanks for the response. I ended up handling this issue with CSS.

  4. paulluxford
    Member
    Posted 1 year ago #

    Hi Slurve,

    Can you explain how you did it with CSS.

    Thank you!

  5. slurve
    Member
    Posted 1 year ago #

    I just positioned the #switch div absolutely at the top of my page. It would have been a challenge to position it anywhere else (like within a certain div somewhere) but it's pretty simple to move it to the top of the page. I used !important to overwrite styles set in the plugin CSS.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic