{"id":538,"date":"2010-10-09T19:22:28","date_gmt":"2010-10-09T17:22:28","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=538"},"modified":"2010-10-09T19:22:28","modified_gmt":"2010-10-09T17:22:28","slug":"how-wordpress-more-link-can-navigate-to-top-of-the-full-article-window","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-wordpress-more-link-can-navigate-to-top-of-the-full-article-window\/","title":{"rendered":"How wordpress more link can navigate to top of the full article window?"},"content":{"rendered":"<p>By default, when you click on the Read More link, the web page loads and then &#8220;jumps&#8221; to the spot where the &lt;&#8211;more&#8211;&gt; tag is set in the post. If you do not want that &#8220;jump&#8221;, you can use this code in your theme&#8217;s functions.php:<\/p>\n<pre>function remove_more_jump_link($link) {\r\n$offset = strpos($link, '#more-');\r\nif ($offset) {\r\n$end = strpos($link, '\"',$offset);\r\n}\r\nif ($end) {\r\n$link = substr_replace($link, '', $offset, $end-$offset);\r\n}\r\nreturn $link;\r\n}\r\nadd_filter('the_content_more_link', 'remove_more_jump_link');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>By default, when you click on the Read More link, the web page loads and then &#8220;jumps&#8221; to the spot where the &lt;&#8211;more&#8211;&gt; tag is&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-wordpress-more-link-can-navigate-to-top-of-the-full-article-window\/\">Continue reading<span class=\"screen-reader-text\">How wordpress more link can navigate to top of the full article window?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,82],"tags":[117],"class_list":["post-538","post","type-post","status-publish","format-standard","hentry","category-coding","category-wordpress","tag-more","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=538"}],"version-history":[{"count":1,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/538\/revisions"}],"predecessor-version":[{"id":539,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/538\/revisions\/539"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}