Title: [Plugin: WPtouch] Custom PHP in pages/posts
Last modified: August 20, 2016

---

# [Plugin: WPtouch] Custom PHP in pages/posts

 *  Resolved [elvanja](https://wordpress.org/support/users/elvanja/)
 * (@elvanja)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/)
 * I am using some custom PHP in certain pages/posts on my site.
    The code is inserted
   into content using “Shortcode Exec PHP” plugin, and I actually reference from
   it some functions in custom_script.php from my regular site theme.
 * The problem with this was that WPTouch can’t find those functions and rendering
   thus failed.
 * The workaround was to place this in wptouch.php, @ line 35:
    require_once ( get_stylesheet_directory().‘/
   custom_script.php’ );
 * I guess this is OK but it would be nicer to have some hook to include any additional
   code.
 * [http://wordpress.org/extend/plugins/wptouch/](http://wordpress.org/extend/plugins/wptouch/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [BraveNewCode Inc.](https://wordpress.org/support/users/bravenewcode/)
 * (@bravenewcode)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/#post-2327542)
 * WPtouch Pro supports these kinds of modifications. We’re not likely going to 
   add this kind of functionality to the current free version.
 *  Thread Starter [elvanja](https://wordpress.org/support/users/elvanja/)
 * (@elvanja)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/#post-2327544)
 * Well, that was expected, and is fair 🙂
    Thanks for the input though!
 *  [beargreaves](https://wordpress.org/support/users/beargreaves/)
 * (@beargreaves)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/#post-2327568)
 * how would one make such modifications? I’ve just purchased the pro version. In
   the classic theme is it possible to modify the horizontal menu bar that appears
   after pressing the menu button. The settings page allows the addition and removal
   of pre defined options. I’d like to be able to add custom menus, buttons, for
   example to make a phone call or subscribe.
 * Regards
 *  [BraveNewCode Inc.](https://wordpress.org/support/users/bravenewcode/)
 * (@bravenewcode)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/#post-2327569)
 * Hi, for pro support please log in to [http://www.bravenewcode.com/support](http://www.bravenewcode.com/support)
   with your account details sent in the license e-mail and we’ll help you out there.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: WPtouch] Custom PHP in pages/posts’ is closed to new replies.

 * ![](https://ps.w.org/wptouch/assets/icon-256x256.png?rev=1313960)
 * [WPtouch - Make your WordPress Website Mobile-Friendly](https://wordpress.org/plugins/wptouch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptouch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptouch/)
 * [Active Topics](https://wordpress.org/support/plugin/wptouch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptouch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptouch/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [BraveNewCode Inc.](https://wordpress.org/support/users/bravenewcode/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wptouch-custom-php-in-pagesposts/#post-2327569)
 * Status: resolved