Forums

WPtouch
[resolved] Loading TEMPLATEPATH files (3 posts)

  1. tvharms
    Member
    Posted 9 months 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
    Posted 9 months 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 9 months ago #

    Thanks

Reply

You must log in to post.

About this Plugin

About this Topic