WordPress: How to remove the Index, Start, Next, Prev Link Elements

I recently decided to remove the following link elements:

<link rel='index' title=' ' href='' />

<link rel=’start’ title=” href=” />

<link rel=’prev’ title=” href=” />

<link rel=’next’ title=” href=” />

From my WordPress sites/blogs:

I think these elements are used by different softwares/browsers for navigation functionality. Although I am not sure which softwares/browsers use it?

Anyway, before you remove these link elements from your site, first search on the internet to find out what exactly is the work of these elements and see if your blog needs these elements or not.

In order to block them from showing up in the head section, put the below mentioned code inside this file: functions.php: you will find this file in the theme which you currently are using.

remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'parent_post_rel_link');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify via Email Only if someone replies to My Comment