How To Remove #more Named Anchor

WordPress adds (#more-000) named anchor when we place the more tag within a post type. So after clicking the .more-link anchor opens the web document and scrolls the page to section of the document containing the named anchor (#more-000).

I have seen various long snippets if you want to remove #more-000 named tag. So i have decided to find a smart hack to handle this situation. Here is the smart solution.

Add this code snippet in the theme’s functions.php file. You may also be interested to know about Creating Multiple Single Posts for Different Categories.



Comments are closed.

Post Navigation