WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Excerpt
[resolved] Advanced excerpt below paragraph tag (3 posts)

  1. MattiasP
    Member
    Posted 2 years ago #

    Hi there!

    Here is what I´m trying to achive: http://dump.1g.se/upload/Zh93.png

    So I´m wondering if there´s any way of getting the excerpt link outside of the paragraph tag, like the Read more button-image in the picture above, but still leaving the ellipsis in there. This will make it easier to add margin-bottom to the paragraph to align the excerpt link and post created date. Or there maybe is some better solution to this?

    Thanks in advance for answers!

    http://wordpress.org/extend/plugins/advanced-excerpt/

  2. basvd
    Member
    Posted 2 years ago #

    If you don't want the read-more link inline with the text you have to modify your theme. The following code outputs a permalink:
    <?php printf('<a href="%s" class="read_more">%s</a>', get_permalink(), 'Read more'); ?>

    Add it somewhere in your theme's post loop. You should also disable the 'add link to excerpt' option so you don't get two links.

  3. MattiasP
    Member
    Posted 2 years ago #

    Thanks very much for the reply! Works great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic