WPtouch Mobile Plugin
[resolved] [Plugin: WPtouch] Custom PHP in pages/posts (5 posts)

  1. elvanja
    Posted 4 years ago #

    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.


  2. BraveNewCode Inc.
    Plugin Author

    Posted 4 years ago #

    WPtouch Pro supports these kinds of modifications. We're not likely going to add this kind of functionality to the current free version.

  3. elvanja
    Posted 4 years ago #

    Well, that was expected, and is fair :-)
    Thanks for the input though!

  4. beargreaves
    Posted 4 years ago #

    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.


  5. BraveNewCode Inc.
    Plugin Author

    Posted 4 years ago #

    Hi, for pro support please log in to http://www.bravenewcode.com/support with your account details sent in the license e-mail and we'll help you out there.

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