WordPress.org

Support

Support » Themes and Templates » Custom Community » [Resolved] Remove URL # more

[Resolved] Remove URL # more

Viewing 10 replies - 1 through 10 (of 10 total)
  • can you post a link to the problem?

    where do you click to get forwarded to such an URL?

    Yes. If you go to my home page (www.homemadegoodness.org) and then click on “Read the rest of this entry →” for any of my articles, you’ll be taken to the post’s page.

    For instance, the actual URL for my Homemade Glue post is (http://www.homemadegoodness.org/easyhomemadeglue.html). But when you click on it, the URL shows as (http://www.homemadegoodness.org/easyhomemadeglue.html#more-404). I need to find out how to get rid of “#more-404.”

    I’m not sure why it’s doing that. All of my posts are doing this. Even if you access the page from a “backlink,” it always shows the additional text in the URL. Any tips?

    what theme version do you run?

    i cannot reproduce this right now, tried all ways i can think of..

    also, did you change any theme files maybe?

    please let me know some more details so i can reproduce..

    maybe it is a bug, but for now i cannot say anything..

    latest theme version out now is 1.14..

    ** do you get the same error if you try to make this on a fresh install with no plugins and just a few test posts? when does the error occur then?

    hope this helps,
    konrad

    My custom community theme is: By Themekraft, Version 1.13. I’m not sure why you cannot duplicate it. I have had this issue pointed out to me by others who have visited my site.

    In the address tab, when you visit one of the FULL posts for one of my blogs, you’ll see additional text at the end of the URL name. It starts with #more. For instance, http://www.homemadegoodness.org/dishwashingdetergentrecipe.html#more-454
    I get the same results on Firefox, Internet Explorer, and other other computers. It’s not necessarily an error. My page content pulls up fine. I’m happy with my site. No bugs. It’s just that pesky “#more” at the end of my URL for each post.

    But you have to go to the post from my home page in order for this to work. Simply click on the Read the rest of this entry → for one of my posts. Then you’ll see the additional URL text in the address tab.

    Thanks robwasripped,
    However, I entered the following into My Custom CSS, but the #more is still displaying:

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

    I’m using the Custom Community theme. Should I enter it somewhere else? It’s not really a big deal if I can’t fix this. It would just be nice to clean up the URL.

    You want to put that code into the functions.php file, not the CSS. That should do the trick.

    Fantastic! It works. Thanks for the help.

    I saw this and other related posts all talking about this and just wanted to add something from my own experience: you have to make sure to add your “function remove_more_link_scroll” at the very bottom of the functions.php page, after the final “<?php } ?>” otherwise it won’t work.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Remove URL # more’ is closed to new replies.
Skip to toolbar