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

  1. slurve
    Posted 2 years 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.


  2. BraveNewCode Inc.
    Plugin Author

    Posted 2 years ago #


    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
    Posted 2 years ago #

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

  4. paulluxford
    Posted 2 years ago #

    Hi Slurve,

    Can you explain how you did it with CSS.

    Thank you!

  5. slurve
    Posted 2 years 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

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic