Remove Web Stories Feed
-
I noticed that web-stories feed is showing on every page.
Any idea which feed_links_extra I can use to target the web-stories feed to remove it?
PS – The web stories feed link appears twice on the default Stories Archive page
The page I need help with: [log in to see the link]
-
The Web Stories plugin by default adds the feed link on every page if the theme supports it.
Right now, the easiest way to disable that is by removing theme support for automatic feed links. Something like this should work:
function remove_header_info() { remove_theme_support( 'automatic-feed-links' ); } add_action('after_setup_theme', 'remove_header_info', 100);If you want more fine grained control, we can definitely add a new filter in our next release to make that easier.
Second, WordPress itself always displays the Web Stories feed on the archive page as well.
Since WordPress 6.1 you can use
add_filter( 'feed_links_extra_show_post_type_archive_feed', '__return_false' );to disable that.This is also why you see the link twice on the archive page. We’ll make sure remove ours in that case in the next release.
Thanks. I don’t want to disable all feeds. Just comments and web-stories.
I’ve manged to remove comments using: add_filter( ‘feed_links_show_comments_feed’, ‘__return_false’ );
I was just unsure of how to go about removing web-stories.
I’ll look out for the next update.
-
This reply was modified 3 years, 5 months ago by
nomadandinlove.
@swissspidy If I use “remove_theme_support( ‘automatic-feed-links’ );” to remove all feeds, how do I go about re-adding only the feeds I need?
-
This reply was modified 3 years, 4 months ago by
nomadandinlove.
That might be a bit cumbersome to do. I suggest just waiting for our next release.
Noted.
I’ve deactivated the plugin for now. I’ll reactivate it when the new release addresses the web stories feed issue.
FYI in the next release (due out early next year), there’s a new
web_stories_enable_print_feed_linkfilter for disabling the feed output.Hoping this comes in soon. It is borking our ability to be followed in the Chrome Discover section under “Following” since it defaults to our Web Stories feed. Any ETA on a fix?
@robbypayne Thanks for your comment. We are looking to get the next release out soon, Thanks!
@robbypayne ICYMI, we published v1.29.0 recently which contains this new
web_stories_enable_print_feed_linkfilter.Thanks @adamdunnage and @swissspidy
Can you provide a little guidance on how to get this implemented? I was hoping for a quick toggle in settings, but it looks like some PHP might be involved. Can you give me some help?
Thanks!
I’m sure you understand that we don’t add an extra setting to the UI for something like that, since it’s not something many people would ever need.
Since you’re not familiar with PHP you can use this mini-plugin instead that I just created for you. Simply download it as a ZIP & upload it to your site on the Plugins page and activate it. This will disable any feed links added by our plugin.
If you still see some feed links after adding this plugin, then these are not added by our plugin and you would need to find another way to remove them, as we don’t provide general WP support here.
If there’s anything else we can help you with, feel free to create a new support topic and we’re happy to help you with that. We also always appreciate a review.
Thanks! For anyone reading this down the road, I simply added this part of the above-mentioned plugin to my functions.php file.
add_filter( 'web_stories_enable_print_feed_link', '__return_false' );Works like a charm! Thanks again @swissspidy
Thank you, the above code was helpful it removed the link across the site. I want to the feed to remain on web-stories archive and web-story display page. Could you please help on this. Thank you.
@vinuta Since this topic is already resolved, could you please open a new topic for your question so that we can better assist you?
Off the top of my head you should be able to use something like this:
add_filter( 'web_stories_enable_print_feed_link', function() { return is_singular( 'web-story' ); } ); -
This reply was modified 3 years, 5 months ago by
The topic ‘Remove Web Stories Feed’ is closed to new replies.