• Resolved GeorgBNM

    (@georgbnm)


    Hi,

    Can the whole Yoast RSS excerpt message be hidden case by case, e.g. via a GET parameter? I would like this not to show up for certain feeds.

    Thanks for your help!

    Best,
    GeorgBNM

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello GeorgBNM,

    Thanks for reaching out.

    Just to confirm, do you mean the phrase added about the post being original to your site? If yes, navigate to WordPress > SEO > Search Appearance > RSS and remove whatever is added to ‘Content to put before each post in the feed’ and ‘Content to put after each post in the feed’. When empty, nothing is appended.

    Thread Starter GeorgBNM

    (@georgbnm)

    Hi Maybellyne,

    thanks for your answer!

    Yes, this is a solution, if nothing should be shown. That’s clear enough.
    But I want this to be shown on normal feed https://domain.com/feed/ and NOT on https://domain.com/category/feed/.

    Searching the web I found a solution, which I’ve configured for me.
    Maybe it will help some others?

    add_action( 'rss_tag_pre', function( $tag )
    {
        $yoastrss = filter_input( INPUT_GET, '_yoastrss', FILTER_SANITIZE_STRING );
        if( 'yes' === $yoastrss)
            add_filter(  'wpseo_include_rss_footer', true, full );
        elseif( 'no' === $yoastrss)
            add_filter(  'wpseo_include_rss_footer', false, full );
    } );

    You have to add
    ?_yoastrss=no
    at the end of your feed URL (https://domain.com/category/feed/)for deactivating this in a special feed!

    Best,
    GeorgBNM

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide RSS excerpt message’ is closed to new replies.