Support » Themes and Templates » the_content and <!–more–>

  • How can I put text before and after <!–more–> in seperate <p>’s?

    To day is it only divided by a <a>… And that won’t allow me to style them differently :

Viewing 1 replies (of 1 total)
  • Read this: Customizing the Read More

    Link Jumps to More or Top of Page
    By default, when you click on the Read More link, the web page loads and then "jumps" to the spot where the <--more--> tag is set in the post. If you do not want that "jump", you can change the default function of how this works by editing the following line in wp-includes/template-functions-post.php
    (NOTE: In WP 2.1 the code is found in wp-includes/post-template.php ).
    (NOTE: When you upgrade WordPress, this file will be replaced so make a note of the change so you can change it again after upgrading.):
    $output .= ' <a href="'. get_permalink()
    . "#more-$id\">$more_link_text</a>";
    $output .= ' <a href="'. get_permalink()
    $output .= ' <a href="'. get_permalink()
Viewing 1 replies (of 1 total)
  • The topic ‘the_content and <!–more–>’ is closed to new replies.