Created
January 26, 2019 20:42
-
-
Save liviucerchez/b835bf75934e4d7445678753e938fa4c to your computer and use it in GitHub Desktop.
Castilo - remove RSS feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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