To remove the LINK data from the HEAD:
- First, pull up your template editor by going to Appearance >> Editor.
- On the right side is a list of files. Click on "Theme Functions" or "functions.php" to edit it.
- At the top, just after "<?php" add these lines of code:
- remove_action('wp_head', 'parent_post_rel_link', 10, 0);
- remove_action('wp_head', 'start_post_rel_link', 10, 0);
- remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
- remove_action('wp_head', 'parent_post_rel_link', 10, 0);
- Click "update file" at the bottom
All done! The link, rel="next" and rel="prev", as well as "start" and "parent", should be all gone from your template.
No comments:
Post a Comment