Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to unhook the comment form in default theme for custom in child theme?

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

    @enderpal444

    bump because I really need to figure this out =)

    Avatar of enderpal444
    enderpal444
    Participant

    @enderpal444

    third times a charm!

    Avatar of enderpal444
    enderpal444
    Participant

    @enderpal444

    Still havent figured this out and would LOVE an answer. From what I can tell the comment form only has 3 custom functions in the bp-default functions.php and I removed all the filters in my child theme funtions.php but they don’t remove and I don’t get it. Help me @boonebgorges =)

    Avatar of @ChrisClayton
    @ChrisClayton
    Participant

    @chrisclayton

    @enderpal, don’t have time to actually look closely at the stackexchange atm. but if it helps, you actually don’t need to unhook it.

    The way wordpress works is it will always look through your child theme first, so if you copy the function into your child theme – when wordpress goes through default and finds `if ( !function_exists( ‘bp_dtheme_comment_form’ ) ) :` since it DOES exist inside your child theme, it will pretend that the function inside the default theme doesn’t exist essentially doing the exact same thing as ‘removed all the filters’ would do.

    Avatar of enderpal444
    enderpal444
    Participant

    @enderpal444

    @chrisclayton thx for being awesome!…that solved the problem. Probably was 200 people on here who could have givin that simple answer sigh.

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

You must be logged in to reply to this topic.