Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1015300
    Almusan
    Participant

    I have something in my header that i want to remove:

    “links feed”

    how can i remove it: i think that is in framework/views/ethos/setup.

    Thanks

    #1015302
    Almusan
    Participant
    This reply has been marked as private.
    #1015311
    Rupok
    Member

    Hi there,

    Thanks for writing in! Feeds are core feature of WordPress and automatically added by WordPress. If you want to remove feeds then you can add the below code to your Child Theme‘s functions.php :

    function fb_disable_feed() {
    wp_die( __('No feed available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
    }
    
    add_action('do_feed', 'fb_disable_feed', 1);
    add_action('do_feed_rdf', 'fb_disable_feed', 1);
    add_action('do_feed_rss', 'fb_disable_feed', 1);
    add_action('do_feed_rss2', 'fb_disable_feed', 1);
    add_action('do_feed_atom', 'fb_disable_feed', 1);
    add_action('do_feed_rss2_comments', 'fb_disable_feed', 1);
    add_action('do_feed_atom_comments', 'fb_disable_feed', 1);
    

    You can also do this with a plugin like this if you don’t have Child Theme installed – https://wordpress.org/plugins/disable-feeds/

    Hope this helps.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1015300 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>