Custom Community
[resolved] Remove URL # more (11 posts)

  1. chrishelp
    Posted 2 years ago #

    I have a "#more" problem with my page URLs. Although my permalink is set for http://homemadegoodness.org/%postname%.html, when I go to any page, the URL is listed as http://homemadegoodness.org/%postname%.html#more-338 (or another number).

    Does anyone know how to fix this? I'm using the Custom Community Theme. Other than that, my site is running great. I simply want to get rid of that unnecessary extension.

    Also, I'm somewhat of newbie with CSS. Is there are code that I can put in "My Custom CSS" to fix this? Thanks

  2. konradS
    Posted 2 years ago #

    can you post a link to the problem?

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

  3. chrishelp
    Posted 2 years ago #

    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?

  4. konradS
    Posted 2 years ago #

    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,

  5. robwasripped
    Posted 2 years ago #

  6. chrishelp
    Posted 2 years ago #

    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.

  7. chrishelp
    Posted 2 years ago #

    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.

  8. chrishelp
    Posted 2 years ago #

    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.

  9. robwasripped
    Posted 2 years ago #

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

  10. chrishelp
    Posted 2 years ago #

    Fantastic! It works. Thanks for the help.

  11. marvmckay66
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic