[Theme: LightWord] How to remove #more tag on read more
-
Generally, with other themes also have #more tag on read more link, I’ve removed it easily with this script by just adding in the functions.php file
function remove_more_jump_link($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_jump_link’);
However, the problem is I cannot do that with LIghWord Them.
As most of us know that one content with two or more URLs cause duplicated content
For example
https://www.carseath.com/articles/car-seat-safety-harnesses-for-children/ and https://www.carseath.com/articles/car-seat-safety-harnesses-for-children/#more-155 you can imagine that “these two URLs point to the same content page (100% duplicate content)It would be appreciated if someone can advice me how to remove #more tag on read more link
Best Regards,
UPhichet
- The topic ‘[Theme: LightWord] How to remove #more tag on read more’ is closed to new replies.