the_content and <!--more--> (2 posts)

  1. hrldnet
    Posted 9 years ago #

    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 :

  2. AskApache
    Posted 9 years ago #

    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()

Topic Closed

This topic has been closed to new replies.

About this Topic