Lessons HTML CSS with PHP and SEO knowledge.

By adding articles to a blog I really do not like the way gives a link on the link in greater detail. There appeared ID and tag #more, which spoils the link. A little warm up and found a way out. There are two ways to fix this link to a wordpress engine to the full news. But the first will not write, because when you upgrade WordPress all come back. But I will tell you who helped me.

We go to the admin panel and go to Appearance. Next, click Edit, and looking in the right panel functions.php

At the end you want to paste the following code :

1
2
3
4
5
6
7
8
9
10
11
	function remove_more_tags($link) {
	    $offset = strpos($link, '#more-');
	    if ($offset) {
	        $end = strpos($link, '"',$offset);
	    }
	    if ($end) {
	        $link = substr_replace($link, '', $offset, $end-$offset);
	    }
	    return $link;
	}
	add_filter('the_content_more_link', 'remove_more_tags');

and everything will work.

Although tag #more and does not duplicate pages, I decided to remove it.

The following two tabs change content below.
I am like making web sites . I will teach you to make websites for yourself and order. Here you can learn the lessons of HTML CSS PHP languages. Learn everything you need to SEO. And also consider working with other programs.

Latest posts by Roman Chygyr (see all)

Leave a Reply

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