WPtouch Woo Shortcodes – WordPress Plugin

Plugin updated (9/29/12)

Proceed using this guide and plugin at your own risk. You are responsible for keeping your shortcodes current as there’s a good chance I will lag in updating the plugin.

If you find this plugin useful and would like to make a donation you can do it via PayPal below to baron@mediabaron.com:
 

Download the WPtouch Woo Shortcodes plugin and install into your ‘/wp-content/plugins/’ directory – Do not activate yet, read the installation text below otherwise you risk locking-up your website!

== Description ==

WPtouch Woo Shortcodes is a plugin that contains the WooThemes ‘admin-shortcodes.php’ code so WPtouch and WPtouch Pro themes will display buttons and other Woo Shortcode items properly when viewed by mobile users.

The original guidance was provided by Emilio at BraveNewCode.com in the forums.

== Installation ==

Follow this guide to get the shortcodes from your WooThemes into your WPtouch Pro theme (works with WPtouch too). For shortcodes in other desktop themes, the exact steps may be different, but the same concept applies.

  1. Upload ‘wptouch-woo-shortcodes.php’ to ‘/wp-content/plugins/’ directory – DO NOT ACTIVATE YET.

  2. In ‘/wp-content/themes/YOURTHEME/functions/css/’ locate ‘shortcodes.css’. This contains the necessary css to display the shortcodes correctly.

  3. You can either (Options b & c only works in WPtouch Pro):

  • (a) Copy all the css in the shortcodes.css to your theme’s Dashboard > Woo YOURTHEME > General Options > Custom CSS field
  • (b) Copy all the css in ‘shortcodes.css’ to your child theme’s stylesheet
  • (c) Point to ‘/wp-content/themes/YOURTHEME/functions/css/shortcodes.css’ URL path in General > Global General > Custom CSS File of your WPtouch Pro settings if you’re using WPtouch Pro.
  1. In ‘/wp-content/themes/YOURTHEME/functions/’ locate the images directory.

  2. Copy the ‘images’ directoy to your root directory, if you already have an ‘images’ directory in your root directory, copy the images into the existing folder.

  3. Locate ‘/wp-content/themes/YOURTHEME/functions/admin-shortcodes.php’ and remove all the code from the file. It will be an empty file but don’t worry as all the code is now in the plugin.

  4. Activate the plugin through the ‘Plugins’ menu in WordPress

  5. You MUST deactivate this plugin BEFORE you update your Woo Framework. Otherwise you risk locking-up your website due to conflicting shortcodes in this plugin and the file ‘admin-shortcodes.php’

Please note that there is no guarantee that this will work on all site environments.

== Frequently Asked Questions ==

= I’m getting a ‘Cannot redeclare woo_enqueue_shortcode_js’ error after I activate the plugin. =

The error code will probably display if you have the shortcode code in both the plugin and in ‘admin-shortcodes.php’ You must delete all shortcode information from ‘/wp-content/themes/YOURTHEME/functions/admin-shortcodes.php’ as it is a duplicate of what’s already in the plugin. See step #6.

= What happens if I update my WooTheme or Update Framework for my site? =

There’s a good chance you will get the error mentioned above due to conflicting shortcodes data. You will need to only have the shortcode data in the plugin. You may also have to update the images in the ‘images’ directory in your root directory if they have been updated by WooThemes.

You can always check to see if the shortcodes plugin needs updating by looking at the WooThemes Framework changelog at: www.woothemes.com/up…

If there are no changes to admin-shortcodes.php then the plugin will not have to be updated. If there is an update to that file you’ll have to copy/paste the shortcode information into the plugin or wait for me to do an update.

Hint: If you want to update your Frameworks and there have been no changes to admin-shortcodes.php then you can just download the ZIP file of the latest framework and FTP the updated files to your server. This will avoid you having to go through the process of disabling the plugin and cutting out the shortcodes when updating via the WordPress dashboard. Grab the latest Frameworks file here: www.woothemes.com/up… Don’t forget to also update the functions-changelog.txt and admin-init.php when using FTP to manually do a Frameworks update. The admin-init.php file notifies the Dashboard as to which version of the Frameworks you have installed.

 

= HELP! I updated my Woo Framework and my website is locked-up with a blank screen!!! =

FTP into your website and go to ‘/wp-content/themes/YOURTHEME/functions/admin-shortcodes.php’ and cut all the code from ‘admin-shortcodes.php’ as it is conflicting with the shortcodes in the plugin. See step #8.

= HELP! I updated my Woo Framework and my website is locked-up with a blank screen only when viewed on the mobile (not the desktop)!!! =

You may accidentally have the compatibility mode set wrong in WPtouch Pro. In your WordPress dashboard go to WPtouch Pro>General>Compatibility. Make sure ‘Include functions.php from the active desktop theme’ is disabled.

= Will this plugin work with the normal WPtouch and not the Pro version? =

Yes. In step #3 you must choose option (a).

= What version of WordPress and WPtouch has this plugin been tested with? =

Up to WordPress 3.4.2 and WPtouch Version 1.9.22.1 and WPtouch Pro Version 2.6.3

== Screenshots ==

No screenshots at this time

== Changelog ==

[toggle title_open=”Close Me” title_closed=”Open Me” hide=”yes” border=”yes” style=”default” excerpt_length=”0″ read_more_text=”Read More” read_less_text=”Read Less” include_excerpt_html=”no”]

= 0.995 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 5.4.2

= 0.994 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 5.3.3

= 0.993 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 5.2.3

= 0.992 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 5.2.1

= 0.991 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 5.0.1

= 0.99 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.7.1

= 0.98 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.6.2

= 0.97 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.6.2

= 0.96 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.6.0

= 0.95 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.5.2

= 0.94 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.3.7

= 0.93 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.3.0

= 0.92 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.2.0

= 0.91 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.1.4

= 0.9 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.0.5

= 0.8 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.0.2

= 0.7 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 4.0.0

= 0.6 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 3.7.14

= 0.5 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 3.7.10

= 0.4 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 3.7.08

= 0.3 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 3.7.03

= 0.2 =
* wptouch-woo-shortcodes.php – updated from Woo Framework Version 3.7.02

= 0.1 =
* wptouch-woo-shortcodes.php – Shortcodes from Woo Framework Version 3.7.1
* readme.txt – This read me file.

Download Plugin

To Upgrade The Plugin

Deactivate WPtouch Woo Shortcodes plugin BEFORE updating your Framework. You will need to leave the ‘admin-shortcodes.php’ file empty BEFORE re-activating this plugin. Don’t forget to update the ico-preview.png and ico-refresh.png icons in your root images folder.

Comments, improvements and questions are always welcomed via email at baron@mediabaron.com

6 Replies to “WPtouch Woo Shortcodes – WordPress Plugin”

  1. Sorry the layout of these instructions seem so plain but I did it to follow the WordPress guidelines on plugin submissions. This plugin has NOT been submitted to WordPress as it's not an easy install, has no built-in error checking so it's not easy to maintain for use. But I publish it here so that those knowledgeable with the workings of WordPress and WPtouch can benefit.

    If someone would like to take the info and make a proper plugin have at it. The plugin is GPLv2.

  2. Hi Baron, I'm using Canvas by Woo Themes with the Magazine template to incorporate the slider. footballfollower.com…
    the problem i have is that to use the woo slider you have to set up a blank page ieÂ&nbsp ;footballfollower.com…; in my case with the template set to 'magazine' and then set this as a static front page in WordPress Reading settings.

    Although, as you can see from my site the slider works perfectly from a pc/mac, it is actually a blank page and therefore WP touch just shows my home page as blank on a mobile device.

    i was wondering if Woo Theme's slider works off of shortcodes and if your plugin will solve teh problem i have of WP touch not showing anything?

    1. Aloha Mark, sorry for the late reply. I don't believe the slider has any interactions with the shortcodes. I assume you turned-off WPTouch as it just shows the desktop version if I visity with my iPhone.

      WPTouch won't show any sliders as it's a barebones theme set-up for mobile devices. 

      My other website has a WooThemes theme and slider and it works properly via desktop and via WPTouch www.hawaii247.com

      I don't have to set-up a blank page for my slider as it's built into the theme.

  3. Thank you very much for this! It worked perfectly. 

    WPTouch Pro doesn't seem to acknowledge the horizontal rule or divider shortcodes, but that's fine. At least they're not showing up as [hr] and [divider] on the screen now!

    Again, thank you : )

  4. Just wanted to say THANK YOU for this plugin. It works great. I really like WPTouch and didn't want to go to another plugin just for the one button to work. I see the button on iphone and android phone! Great. It doesn't have the same rounded corners as it does on the main site, but it's a button on mobile site and that's what matters at this point. THANKS again!

  5. I am using WooThemes with WordPress and have added shortcodes to my site, such as [threecol_one] and [button link=
    I use WP Touch for mobile devices. The shortcodes work on computers, but on mobile devices the shortcodes appear as code on the pages… How can I eliminate the shortcode itself from appearing on mobile devices?
    Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *