WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
[resolved] [Plugin: WPtouch] Loading TEMPLATEPATH files (3 posts)

  1. tvharms
    Member
    Posted 3 years ago #

    To load reused files in my theme I like to use the following code:
    <?php include (TEMPLATEPATH . '/includes/my_file.php'); ?>

    Standard practice as far as I know, but wptouch does not load any included files that use this code.

    Any thoughts on possible fixes or has anyone run across this before?

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

  2. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 3 years ago #

    WPtouch loads its own theme, so for it, TEMPLATEPATH is the path to the wptouch theme folder, not the desktop theme. You'll need to add the files to WPtouch's theme folder as well.

    Please note: this is unsupported. For support doing so please upgrade to WPtouch Pro, which supports child themes and copied themes that survive upgrades.

  3. tvharms
    Member
    Posted 3 years ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic