Skip to content

Instantly share code, notes, and snippets.

@liviucerchez
Created January 26, 2019 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liviucerchez/b835bf75934e4d7445678753e938fa4c to your computer and use it in GitHub Desktop.
Save liviucerchez/b835bf75934e4d7445678753e938fa4c to your computer and use it in GitHub Desktop.
Castilo - remove RSS feed
// append this code in the functions.php file of the child theme
function castilo_child_remove_rss() {
remove_theme_support( 'podcast-rss-feed' );
}
add_action( 'after_setup_theme', 'castilo_child_remove_rss', 20 );
/* Add new feed in the header section of the website */
function castilo_child_rss_meta_tag() {
echo '<link rel="alternate" type="application/rss+xml" title="YOUR TITLE" href="RSS_FEED_URL" />' . "\n";
}
add_action( 'wp_head', 'castilo_child_rss_meta_tag' );
// and of course, manually change any RSS menu item and RSS button link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment