Home Forums ArileWP Pro #more Link

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24338
    Thomas
    Participant

    In the “Recent Posts” section, the link to the post is appended with “#more” in each case. This causes a visitor who clicks on the link to be scrolled to the end of the post. The visitor has to scroll up again to read the post, which is disadvantageous. How can this be avoided.

    The link should appear without #more”.
    Example link: https://th-blickwinkel.de/2021/10/10/sg-maulburg-steinen-sg-waldkirch-denzlingen/#more-8706

    #24340
    themearile
    Keymaster

    Hi Thomas

    Thanks for contacting us.

    Its working well in our end. So please deactivate all plugins one by one and check your site, I think this is a plugin conflicting issue.

    Let us know if it works.

    Thanks

    #24344
    Thomas
    Participant

    unfortunately this does not work. the link should be displayed correctly or ….#more.

    how can I change the #more… prevent?

    • This reply was modified 3 years, 8 months ago by Thomas.
    #24347
    themearile
    Keymaster

    Hi Thomas

    Ok please go to the theme directory arilewp-pro >> functions.php file and open this file.

    And add the below code to remove the more prevent from url.

    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' );

    Let us know if it works.

    Thanks

    #24356
    Thomas
    Participant

    it works thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.