Hi!
Im afraid you shared a url pointing to localhost, therefore it is not reacheble from outside your computer.
Hello @luishporras, the links are not real links, just dummy examples to show that I would like to get read of the anchor, and link to a-long-post/ in stead of a-long-post/#more
True… my fault, sorry.
From what I see in the Guntemberg repo the setting (if exists) should be in the post-excerpt core block, if it doesn’t exist you could create a custom one where you can remove the anchor or add a setting to let the user decide. Doing this should be rather easy (if you have developing experience with js and react), copy the core/post-excerpt block, rename it and the add the necessary changes here.
Hope this helps!
Thank you for your help, which in fact put me on the right track.
I found the solution in the codex:
https://codex.ww.wp.xz.cn/Customizing_the_Read_More
The old way is still working.
function remove_more_link_scroll( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', $link );
return $link;
}
add_filter( 'the_content_more_link', 'remove_more_link_scroll' );
Great! may I ask how did you end up in the codex? I’m also learning and there are some parts of the documentation that I don’t know yet.
Hello @luishporras, the codex is extensive, it’s the first source I usually check. At first I was looking for a solution in the More block, but I found an answer by changing the more link.