Support » Theme: Esplanade » Add Read more

Viewing 9 replies - 1 through 9 (of 9 total)
  • I join with the request to make a “read more”

    Here is what I did to fix this,
    Found this in content.php file in the root of esplanade folder:

    <div class="entry-summary">
    	<?php the_excerpt(); ?>
    </div><!-- .entry-summary -->

    Replace with this:

    <div class="entry-summary">
    	<?php the_excerpt(); ?><a>" rel="bookmark" title="<?php the_title_attribute(); ?>">Read More</a>
    </div><!-- .entry-summary -->

    Of course you know the problems of changing the code that comes with the next update. You get to do it again!

    Of course you know the problems of changing the code that comes with the next update. You get to do it again!

    For that reason, you should create a child theme instead of modifying the theme files directly. It doesn’t take that much work; besides creating a new style.css file (which can be virtually empty, since you’ll be bringing in the CSS from the parent theme), you only need to copy over any modules that you’ve changed (e.g., content.php).

    The replacement php lines don’t seem to work with my Esplanade theme.

    Some of the script text shows up where just the “Read More” should show up. It basically looks like this (with the post’s headline/title for the_title_attribute):

    ” rel=”bookmark” title=”the_title_attribute”>Read More

    The text has the colour of a link and it also changes its colour when you move your mouse arrow over it. But it’s no working link and you can’t click on it to get to the full post.

    I’ve changed it back. Could anybody here provide a working solution? It would be much appreciated.

    Regards,
    Jay

    http://weblog.jay-kays.de

    Moderator stephencottontail

    (@stephencottontail)

    There was a typo in the code. It should look like this:

    <?php the_excerpt(); ?><a rel="bookmark" title="<?php the_title_attribute(); ?>">Read More</a>

    And as @crouchingbruin already explained, you should make this change in a child theme.

    Thanks a lot for your help. 🙂
    I will try it tomorrow. Need some sleep first.

    The Read More shows up all tight now but it’s still not working.
    The Read More has the colour of a link and it also changes its colour when you move your mouse arrow over it. But it’s no working link and you can’t click on it to get to the full post. It’s a “fake link”. Just colored text and nothing more.

    Moderator stephencottontail

    (@stephencottontail)

    Yes, that makes perfect sense, because I forgot an important part. It should work if you add href="<?php the_permalink(); ?>" to the <a> tag.

    Thanks a lot for your help. It’s working now.
    I already thought that a href was missing somewhere because I know some HTML. I’m just don’t know enough about php and its syntax. I’m only at the beginning doing experiments. 🙂

    Thanks again for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add Read more’ is closed to new replies.