• Resolved nomadandinlove

    (@nomadandinlove)


    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]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    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.

    Thread Starter nomadandinlove

    (@nomadandinlove)

    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.

    Thread Starter nomadandinlove

    (@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?

    Plugin Author Pascal Birchler

    (@swissspidy)

    That might be a bit cumbersome to do. I suggest just waiting for our next release.

    Thread Starter nomadandinlove

    (@nomadandinlove)

    Noted.

    I’ve deactivated the plugin for now. I’ll reactivate it when the new release addresses the web stories feed issue.

    Plugin Author Pascal Birchler

    (@swissspidy)

    FYI in the next release (due out early next year), there’s a new web_stories_enable_print_feed_link filter 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!

    Plugin Author Pascal Birchler

    (@swissspidy)

    @robbypayne ICYMI, we published v1.29.0 recently which contains this new web_stories_enable_print_feed_link filter.

    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!

    Plugin Author Pascal Birchler

    (@swissspidy)

    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.

    Plugin Author Pascal Birchler

    (@swissspidy)

    @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' );
    	}
    );
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Remove Web Stories Feed’ is closed to new replies.