changing position of "read more" link

resolved (3 posts) (2 voices)

  1. yaysloths
    Member

    Hi there - I reformatted the "Read more" link on the blog page but am now trying to move it in line with the excerpt, as seen in the attachment. Could you let me know the best way to do that? Thanks!

    Attachments

    1. readmore.png (88.4 KB, 0 downloads) 9 months old
    Posted 9 months ago #
  2. Ruderic
    Support

    Hello,

    Go to the theme folder and open the file "lib/functions/theme.php". In line #1046 you will find this block of code:

    the_excerpt();
    $permalink = get_permalink( get_the_ID() );
    if( ( !empty( $disable ) && strpos( $disable, 'more' ) === false ) || empty( $disable ) )
    	echo apply_filters( 'mysite_read_more', $permalink );

    Replace it with:

    $excerpt = get_the_excerpt();
    $permalink = get_permalink( get_the_ID() );
    echo '<p>' . $excerpt;
    if( ( !empty( $disable ) && strpos( $disable, 'more' ) === false ) || empty( $disable ) )
    	echo apply_filters( 'mysite_read_more', $permalink );
    echo '</p>';

    Try that and let us know the results.

    Posted 9 months ago #
  3. yaysloths
    Member

    Absolutely beautiful! I need to play with the spacing a bit but I can take it from here. Thanks so much!

    Posted 9 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme