-
Author
-
February 12, 2016 at 14:25 #103527lopregParticipant
Hi,
I just discovered that when people try to subscribe to my site’s feed they end up being subscribed to domain.com/activity/feed/.
Please, how I can I stop this? I need to make sure that when people search for feeds on my site, they only get to the default domain.com/feed/.
I don’t need any body being able subscribe to any activity on my site via RSS except the default wordpress posts’ feeds.
Thanks for your assistance.February 12, 2016 at 16:05 #103557sharmstrModeratorThis isnt a Kleo bug. Kleo has nothing to do with RSS feeds. There are a few topics about this on the buddypress forum. Please refer to them for assistance. https://buddypress.org/support/search/rss/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 12, 2016 at 19:59 #103623lopregParticipant@Sharmstr thanks for the response. I have searched around but the codes I found doesn’t appear to work. Then I came across this => https://buddypress.org/support/topic/changing-the-default-rss-feed-sitewide-activity/. Please, can you help tell where I should be implementing it on the theme. Thanks again
February 13, 2016 at 19:49 #103754sharmstrModeratorGo to /kleo/header.php and move the wp_head line above the bp_head line. I have no idea if this will work. Let me know.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 13, 2016 at 19:53 #103756sharmstrModeratorFYI – If you look at buddypress template files, you’ll see that they are calling bp_head before wp_head as well.
/plugins/buddypress/bp-themes/bp-default/header.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 14, 2016 at 02:55 #103793lopregParticipantYou are right @sharmstr. I doesn’t appear to solve the problem.
Am I really the only one having this issue? Or is anyone else having the same challenge?
I have tried the codes below to completely remove buddypress feeds but none works.COPY CODEfunction bpfr_hide_rss_feeds() { remove_action( 'bp_actions', 'bp_activity_action_sitewide_feed' ); remove_action( 'bp_actions', 'bp_activity_action_personal_feed' ); remove_action( 'bp_actions', 'bp_activity_action_friends_feed' ); remove_action( 'bp_actions', 'bp_activity_action_my_groups_feed' ); remove_action( 'bp_actions', 'bp_activity_action_mentions_feed' ); remove_action( 'bp_actions', 'bp_activity_action_favorites_feed' ); remove_action( 'groups_action_group_feed', 'groups_action_group_feed' ); } add_action('init', 'bpfr_hide_rss_feeds');
COPY CODEfunction bp_remove_feeds() { remove_action( 'wp', 'bp_activity_action_sitewide_feed', 3 ); remove_action( 'wp', 'bp_activity_action_personal_feed', 3 ); remove_action( 'wp', 'bp_activity_action_friends_feed', 3 ); remove_action( 'wp', 'bp_activity_action_my_groups_feed', 3 ); remove_action( 'wp', 'bp_activity_action_mentions_feed', 3 ); remove_action( 'wp', 'bp_activity_action_favorites_feed', 3 ); remove_action( 'wp', 'groups_action_group_feed', 3 ); } add_action('init', 'bp_remove_feeds');
February 14, 2016 at 03:02 #103795sharmstrModeratorAre they removed if you add the code to the bp-custom.php file and enable the WP 2015 theme?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 14, 2016 at 03:31 #103797lopregParticipantYes. I just tested the first code with 2015 theme, and it worked.
Thanks again for the assistance @sharmstrFebruary 14, 2016 at 14:18 #103822sharmstrModeratorOkay. Does it work with it in bp-custom.php and Kleo enabled?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 14, 2016 at 14:29 #103824lopregParticipantIt doesn’t work. I have tried both the bp-custom.php and function.php, the codes doesn’t work in any of them when kleo is enabled.
Thanks for all the assistance @sharmstar and happy val 🙂February 14, 2016 at 15:15 #103827sharmstrModeratorI just tested this and the WP 2015 theme and the WP 2016 theme doesnt add the feeds even without the custom code, so it wasnt a good way to test this. Moving the bp_head call after the wp_head call doesnt work either.
Anyhow, the code you’re using is completely wrong. Try this
COPY CODEfunction bpfr_hide_rss_feeds() { remove_action( 'bp_head', 'bp_activity_sitewide_feed' ); remove_action( 'bp_head', 'bp_members_activity_feed' ); remove_action( 'bp_head', 'bp_groups_activity_feed' ); } add_action('bp_init', 'bpfr_hide_rss_feeds');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 14, 2016 at 15:31 #103830lopregParticipantWow. This worked!!!
Thanks a lot @Sharmstr. You are a life saver! 🙂February 14, 2016 at 15:32 #103831sharmstrModeratorYou’re welcome. Now get off your computer and go enjoy valentines day 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.