Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ajax.php in child theme

  • @janismo

    Participant

    hi,

    I need to add exit(); to bp_dtheme_new_activity_comment(). As I understand, it is impossible to simply copy ajax.php to my child theme and make necessary changes.
    What would be the best way to get it done?

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @janismo

    Participant

    if the only method is to replace full function using remove_action/add_action, no need to reply.

    @djpaul

    Keymaster

    We probably should make it possible to override it as easily as that.

    Out of interest, why do you want to put an exit() in it?

    @janismo

    Participant

    hi @djpaul ,

    separate ajax.php functions do not work as they should at the search page of “unified search” by Brajesh (without adding of this exit();). In my case bp_dtheme_new_activity_comment() returns full search page (with css from bp-default) below replies if I try to comment on activity, exit(); fixes it.

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