Support » Plugin: WPtouch Mobile Plugin » [Plugin: WPtouch] Custom PHP in pages/posts

  • Resolved elvanja


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author BraveNewCode Inc.


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

    Well, that was expected, and is fair 🙂
    Thanks for the input though!

    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.


    Plugin Author BraveNewCode Inc.


    Hi, for pro support please log in to 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.