WordPress.org

Forums

WPtouch Mobile Plugin
[Plugin: WPtouch] Shortcodes (18 posts)

  1. gaik
    Member
    Posted 2 years ago #

    Hi
    I've installed WPtouch and it is working well, however, I am using a Genesis theme called Agentpress 1.0 and it uses shortcodes to display property information.

    The App however, only displays the code and not the details.

    Eg: [property_details details="1"]

    How does WPtouch handle shortcodes?
    Thanks
    ai

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

  2. gaik
    Member
    Posted 2 years ago #

    Oh the URL is http://www.berniekroczek.com.au
    thanks
    Gai

  3. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi gaik,

    Since those shortcodes are custom to your desktop theme, and WPtouch loads its own theme, it can't 'see' the shortcodes.

    In WPtouch Pro, support for the desktop theme's can be added. We have documentation available to all Pro users that others have used to successfully add support for Woothemes', ElegantThemes' and other themes' shortcodes.

    You're welcome.

  4. gaik
    Member
    Posted 2 years ago #

    I am a WPtouch Pro user, so where can I get the documentation you speak of?
    I'd really appreciate it.
    Cheers
    Gai

  5. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Gai,

    Here's a link - http://www.bravenewcode.com/docs/wptouch-pro/compatibility/using-shortcodes/

    Make sure you are logged in with your Pro account to be able to access the article.

  6. ImmortalGuru
    Member
    Posted 2 years ago #

    I am having the same issue with WP Touch displaying the short codes but with very generic short codes like [one_half]. The website is http://www.carolinacloset.com/.

    Also, the gallery I have on the site is not resizing for the mobile version. Is that something with the gallery or something that is tied to the plugin.

    I only have the free account.

  7. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    The free version of WPtouch does not handle advanced desktop theme functions such as shortcodes.

    Your gallery should resize unless you have fixed dimensions applied to its elements or the images inside. Ensure you have flexible dimensions or no dimensions specified and scaling should work as expected.

  8. Linerd
    Member
    Posted 1 year ago #

    You can edit the functions.php file for WPtouch to enable the shortcodes. I did a write-up on how to do it on my blog at:
    WPtouch - Enable Shortcodes

  9. i4infomania
    Member
    Posted 1 year ago #

    I have got the free version of same for my blog http://www.celebritymeasurement.com and i also face the same issue, I guess PRO version can help us.

  10. onomiko
    Member
    Posted 1 year ago #


  11. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, WPtouch Pro is built to accommodate advanced desktop theme functionality such as custom post types, custom page templates, and shortcodes.

    Be aware that when you alter the core files in the free version of WPtouch, your customizations will be overwritten on subsequent updates. You'll want to keep good records of your changes so you may re-create them later.

  12. lieluh
    Member
    Posted 1 year ago #

    I have WP Touch Pro, and the shortcodes appear on my mobile devices. I used WooThemes for my website on wordpress.
    The shortcodes are for columns, button links, and contact us form.
    The shortcodes do not appear on the website on my computer, just on my phone.

    How can I prevent these shortcodes from appearing on my mobile devices?

    Thank you in advance for your help

  13. Picoben
    Member
    Posted 1 year ago #

    The issue is bigger than WPTouch, and the answer is to stop defining shortcodes inside of a specific theme. Instead of defining shortcodes in the functions.php file within a particular theme (or adding an include in that file that points to a short codes.php), just create a simple plug-in for your shortcodes. That way, your shortcodes will continue to work when you switch themes, and they will continue to work when you view the same site on a desktop, with your regular theme, and on mobile, with WPTouch.

    Another nice benefit of using a plug-in for your shortcodes is that you can use the built in editor screen to make changes to your shortcodes. The reason why that is good is because if you make a mistake in your code you will be prompted with an error message before the edit is saved. That will prevent your temporary errors from temporarily breaking your site for your users until you fix the error.

    If you have never created a plug in, it is really easy. Its just a php file that you save in your plug-in directory. For an easy model, if you have never done this, just take a really simple plug-in, such as Hello Dolly, and copy the file, change the name of the file and the information at the top of the file, and delete the code.

    If you are nervous about just cutting and pasting all of your shortcodes from your functions.php to your plug-in, you can take it step by step to isolate and troubleshoot each step: Start with your plug-in that contains no code and activate it through the administrative menu for plugins. If that worked fine, then go to your functions.php file, copy one (or all) of your shortcodes and paste them to a text file temporarily and either delete them from your functions.php file, or comment them out and save. Now check to confirm that your shortcodes are not working on your site. Next, paste those codes into your plug-in and confirm that your shortcodes are working. Thats it.

  14. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    I have WP Touch Pro, and the shortcodes appear on my mobile devices.

    You'll need to set up that feature of WPtouch Pro (it ships with all advanced features deactivated).

    Yes, creating a plugin is a great option as well but for those who's shortcodes are in a purchased theme, say, those advanced features may be "switched on". For support with WPtouch Pro, log in to http://bravenewcode.com/support/

  15. lieluh
    Member
    Posted 1 year ago #

    So right now I have WP Touch (free version). If I purchase WP Touch Pro, is it easy to edit the settings so that the shortcodes won't appear on mobile devices?
    I use Woothemes.
    I am not sure if my shortcodes were created with a plugin or not? Right now, the shortcodes are embedded in between text on different pages of my website.
    Can you please provide me with an outline of how I will eliminate the shortcodes on mobile devices so that I will know if it will be simple enough for me to fix on my own?

    Thanks again

  16. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    WPtouch Pro allows you to easily remove shortcodes by entering the shortcodes' names in a comma-separated list.

    Example:

    button, blockquote, column and so on.

    You're welcome.

  17. lieluh
    Member
    Posted 1 year ago #

    Thanks for your help.

    I have added BUTTON to the list and it takes the "button link" shortcodes off of the mobile site. So that works!

    However, I also have shortcodes "threecol_one", "/threecol_one", and "/threecol_one_last".
    How should i enter those into the list? When I tried adding COLUMN, it took the entire content out completely from the mobile pages...

    Thanks again! Your help is much appreciated!!

  18. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    lieluh,

    The shortcodes should be entered without quotes in a comma separated list.

    Example

    threecol_one_last,threecol_one and so on.

    For further assistance with WPtouch Pro, please login at http://www.bravenewcode.com/support and our support team will gladly continue assisting you there. Thank you.

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