override ajax and js files in bp-default theme

I know the bp-default theme can be overridden in child theme by copying the same folders and files to the child theme directory. I tried to do this for two files:
bp-default/_inc/ajax.php
bp-default/_inc/global.js

but it doesn’t seem to work. The changes I made in the child theme doesn’t seem to work at all.

hi ray, thanks for the post. I tried to use hooks in /_inc/ajax.php, but it didn’t seem to work in my case. Here is what I would like to achieve:
When an activity post is DELETED, an image will be automatically updated right below the group admin avatar.

I added some code in /_inc/ajax.php, pass on the new image url by json. In /_inc/global.js, when the “delete_activity” action is fired, the new image url is returned as response. Then show the new image. The code at /_inc/global.js is like: jq(‘#myimage’).attr(“src”, new_image_url);

If it is not recommended to override /_inc/ajax.php, is there a better way to do so? Thanks again.

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

The topic ‘override ajax and js files in bp-default theme’ is closed to new replies.