WordPress.org

Ready to get started?Download WordPress

Forums

Placing the "Read More" link in a div outside the post? (2 posts)

  1. AngryJewCat
    Member
    Posted 6 years ago #

    Alright, I'm working on converting a design over to a wordpress theme, and I'm down to my final obstacle. I don't know if it is possible, but is it a possibility to place the "Read more" type link from the <1-- more --> tag somewhere other than the bottom of the post? What wordpress tag controls this if it is possible? I'd like to be able to customise the placement of this link...

  2. Mithrustt
    Member
    Posted 6 years ago #

    In your template that formats the page, you'll have something like:

    <?php the_content('Read more'); ?>

    I had a similar situation where I didn't want the 'Read more' to show up in the post, but in the footer of the post. So, I changed it to:

    <?php the_content(''); ?>

    And in my footer in my template page, I put this

    <div class="post_meta"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read more</a></div>

    This allows you to put the 'Read more' wherever you want since you can define the attributes of the class. This is just how I handled it, and there may be other/easier ways to do it, but it got the job done for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags