Skip to:
Content
Pages
Categories
Search
Top
Bottom

override bp_show_blog_signup_form()


  • socialc
    Participant

    @socialc

    Is it possible to do this? If so, what’s the best practice?

    I just need a little bit more control over the markup that this form presents and I don’t want to manually edit bp-blogs-template.php.

    Help appreciated.

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

  • Henry Wright
    Moderator

    @henrywright

    Hi @socialc

    The Template Hierarchy will let you override create.php. In your own version of that file you could use custom_show_blog_signup_form() in place of bp_show_blog_signup_form(). I’d copy everything from bp_show_blog_signup_form() to your custom function and edit what you need to.


    socialc
    Participant

    @socialc

    @henrywright Tidy, I’ve been away from BuddyPress for a while but this is achieable. Thanks.


    buddycore
    Participant

    @buddycore

    @henrywright this didn’t work, when the form is submitted the original function is run or something along those lines meaning my custom function call with custom markup output was being made redundant.

    I’ve returned to using bp_show_blog_signup_form(). It’s not ideal but hopeful the new templates will allow for a better experience.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar