Skip to:
Content
Pages
Categories
Search
Top
Bottom

extending functions.php in my child-theme

  • Avatar of Anointed
    Anointed
    Participant

    @anointed

    I created a child-theme for buddypress using the default template.

    Everything worked until I tried adding in the following to my child-theme functions.php file

    require_once(TEMPLATEPATH . '/includes/functions/custom_functions.php');

    I created the /includes/functions/custom_functions.php file within the child theme folder, but it’s not picking it up.

    Does bp not understand TEMPLATEPATH? Or am I just missing something really stupid here?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Anointed
    Anointed
    Participant

    @anointed

    The reason I want to use includes is that I add a lot of functionality to the backend, and like to stay organized by using multiple included php functions files. I just find it much easier to maintain then putting everything into one huge functions.php file.

    Avatar of Anointed
    Anointed
    Participant

    @anointed

    bump: is there a different way to include secondary function files within a child theme?

    I’ve tried many different ways to include templatepath, but none are working…

    please advise.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Try STYLESHEETPATH.

    I think I remember reading a better solution somewhere, but I can’t remember it off the top of my head.

    Avatar of Anointed
    Anointed
    Participant

    @anointed

    Thank you Ray, that worked out just fine.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Remember to green light the thread!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.