Results 1 to 3 of 3

Thread: changes in includes directory of a child theme aren't included

  1. #1
    Thread Starter
    oren's Avatar
    Join Date
    Sep 2010
    Location
    Israel
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post

    Question changes in includes directory of a child theme aren't included

    Hi,

    I'm trying to set a child theme for my changes. CSS and changes in the main child directory are working well, but I can't make my include directory changes to stick. They are being ignored.

    My child theme, called classipressHeb (for hebrew) sits in it's own directory.
    I've placed a new sidebar-contact.php under the classipresHeb/includes folder but it's ignored.

    To debug I've add the sidebar-ad.php (which calls it) to the child theme and when I print the TEMPLATEPATH I see it points to the parent theme. I believe the following code is responsible for the include, so if TEMPLATEPATH is wrong it's clear why it isn't called.
    Code:
    include_once(TEMPLATEPATH . '/includes/sidebar-contact.php' );
    I get:
    mysite....com.com..../httpdocs/wp/wp-content/themes/classipress

    Am I missing something? should I change the calling php file in the parent to explicitly call the includes directory?

    I've read the tutorials on the child theme but none of them explain how the mechanism works so I'm having a difficulty of sorting this out.

  2. #2
    Thread Starter
    oren's Avatar
    Join Date
    Sep 2010
    Location
    Israel
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Child themes - do it apply to files in the includes folder too?
    By shimmermoss in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: May 26th, 2012, 04:24 PM
  2. Child Theme questions
    By rodeoramsey in forum Report ClassiPress Bugs
    Replies: 21
    Last Post: January 8th, 2012, 11:58 PM
  3. Child Theme - logout redirection to default theme issue
    By cgervereau in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 1st, 2010, 02:48 AM
  4. Child Theme and index-directory.php
    By mark1975 in forum Help Using ClassiPress
    Replies: 1
    Last Post: May 19th, 2010, 01:41 PM