Displaying text with MORE tag?

Community Forums Forums Design Tips and Tricks Displaying text with MORE tag?

This topic is: not resolved

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Marcy 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #87798

    komanderkin
    Member
    Post count: 2

    I’m trying to make the <!–more–> tag output some text on the place where it’s inserted in the post.

    i was suggested to use the following code in functions.php:

    add_filter( 'the_content_more_link', 'read_more_text' );
    function read_more_text() {
    if ( is_single() ) {
    echo '<div class="your-banner">ADD TEXT HERE</div>';
        }
    }

    unfortunately, it doesn’t output anything on the post.

    i’ve searched all around the web for a solution, but couldn’t find a way to fix the code provided above. any ideas on how to do this in Genesis?

    http://bedroomproducersblog.com
    #87843

    Marcy
    Participant
    Post count: 315
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.