Is there a plugin or something that can help me out with deleting unnecessary elements in my code?
I am in charge of fixing a WordPress site and have been asked to remove the following elements that are not necessary, for example, I don’t have any pagination in my pages but in my code there is still:
-
<link rel='prev' title='Barcelona' href='http://www.creativesquaresummercamp.com/barcelona/' />
-
<link rel='next' title='Frequently Asked Questions'
href='http://www.creativesquaresummercamp.com/frequently-asked-questions/'
/>
Again with the RSS feed:
<link rel="alternate" type="application/rss+xml" title="Creative Square
Summer Camp RSS2 Feed"
href="http://www.creativesquaresummercamp.com/feed/" />
How can I clean up the code / delete unnecessary elements?
This are default settings fron WordPress.
This was set via
wp-includes/default_filters.php
or the feed inside your theme.Check the theme,
functions.php
foradd_theme_support( 'automatic-feed-links' );
and remove it.
Add this via plugin or
functions.php
in your theme for remove the different defaults, hints and small description is on the source.Remove the following line from the themeâs
functions.php
:⦠and add this to the file: