[Plugin: AddToAny: Share/Bookmark/Email Button] Remove Add-to-any on WPTouch devices (3 posts)

  1. goodluck4287
    Posted 5 years ago #

    I'm a WP n00b and I have been trying to find a way to hide add to any in the WPtouch iPhone (plugin) theme.

    WPTouch comes with a nice, basic sharing system that is suitable for a mobile device and I think that Add to Any is perfect for the desktop.

    Thanks in advance.

  2. iamtheboat
    Posted 5 years ago #


    Exact same issue/request here. Any ideas out there?


  3. iamtheboat
    Posted 5 years ago #

    OK, I figured this one out. Pretty easy actually.

    1. In wordpress admin, go to the addtoany save/share settings page.
    2. UNCHECK all options for 'Placement'.
    3. Click the arrow button to the right of the text that reads "* If unchecked, be sure to..." and copy the PHP code it gives you.
    4. Place this in the relevant areas of your theme. For me this was in index.php and single.php pages, immediately after <?php the_content(); ?>
    5. Done! For some reason this seems to hide it from the iPhone. For me at least.

    I also found some very useful mobile browser detection code, at http://papermashup.com/lightweight-mobile-browser-detection/
    But in the end I didn't need it.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic