Support » Plugin: WPtouch - Make your WordPress Website Mobile-Friendly » [Plugin: WPtouch] Custom PHP in pages/posts

  • Resolved elvanja

    (@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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@elvanja)

    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.

    Regards

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WPtouch] Custom PHP in pages/posts’ is closed to new replies.