Skip to:
Content
Pages
Categories
Search
Top
Bottom

extending functions.php in my child-theme


  • 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)

  • 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.


    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.


    r-a-y
    Keymaster

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


    Anointed
    Participant

    @anointed

    Thank you Ray, that worked out just fine.


    r-a-y
    Keymaster

    @r-a-y

    Remember to green light the thread!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘extending functions.php in my child-theme’ is closed to new replies.
Skip to toolbar