Forums

Customizing the read more link (4 posts)

  1. Mertzi
    Member
    Posted 4 years ago #

    Im trying to remove the link jump in the more link. Found some info at:
    http://codex.wordpress.org/Customizing_the_Read_More

    I tried exchanging:
    . "#more-$id\">$more_link_text</a>";
    with
    ."\">$more_link_text</a>";

    But the more link structure does not change. I cleared my browser cache.

    When i compare the instruction source code with my version 2.3.2 live code there seems to be some difference. In my code there is some if else code.

  2. wprockstar
    Member
    Posted 4 years ago #

    just remove the text inside the curly brackets from the_content


    <?php the_content(''); ?>

    Is that what your talking about?

  3. Mertzi
    Member
    Posted 4 years ago #

    I want the read more same as article link. Not a added /#more-XXX.

  4. Otto
    Tech Ninja
    Posted 4 years ago #

    You made the correct change. Are you running wp-cache or wp-super-cache? You'll need to clear them too if you are.

    In post-template.php:
    $output .= ' <a href="'. get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>";

    becomes:
    $output .= ' <a href="'. get_permalink() . "\" class=\"more-link\">$more_link_text</a>";

Topic Closed

This topic has been closed to new replies.

About this Topic