Add 'Read More' button or link on front page

Viewing 9 posts - 1 through 9 (of 9 total)
  • #4397
    Bonevier
    Participant

    Hello,

    great theme you have here!

    Can you quickly point me in the right direction how I can add a ‘read more’ link (or button) on the front page, where I currently have the three latest posts? What file should I edit?

    The title and thumbnail is clickable, I’d just like to add the ‘Read more’.

    And also, if it’s possible to add the Facebook/Twitter share icons on the frontpage.

    I currently have the Grid layout activated.

    #4405
    Daniel Tara
    Keymaster

    In content.php add this after :

    <a href="<?php the_permalink(); ?>">Read more &raquo;</a>
    • This reply was modified 12 years, 1 month ago by Daniel Tara.
    #4419
    Bonevier
    Participant

    Thanks alot!

    #4572
    iamjimpa
    Participant

    Awesome. Thanks.

    What about adding this to the teaser articles as well? I got it to work, with your suggestion, in the full posts, but having it in the teaser would be sweet.

    thanks

    #4656
    somegirl
    Participant

    The way I accomplished this — to add it to the teasers as well as regular posts — was to edit functions.php instead (in a child theme).

    I replaced this:

    function esplanade_excerpt_more($more) {
    return ‘ …’;
    }
    endif;

    with this:

    function esplanade_excerpt_more($more) {
    return ‘ID) . ‘”>… [read more] ‘;
    }
    endif;

    #6174
    carter_silverspn
    Participant

    @somegirl I’ve tried editing functions.php in a child theme in the way that you recommend here, but I get a syntax error. Any chance there’s something missing? I tried replacing the “smart quotes” with “straight quotes”, but that didn’t solve the issue. Thanks!

    #6175
    somegirl
    Participant

    Oh heavens, yes, I see the system here stripped the part that was made up of HTML, which makes it entirely wrong. I didn’t notice at the time of my posting; sorry about that. Try copying the text from here – http://pastebin.com/PVANvkPv

    #6179
    carter_silverspn
    Participant

    @somegirl Fantastic, that worked perfectly. Thanks!

    #12686
    telamore
    Participant

    Does anyone know how to add “read more” to the slider excerpts?

    Thanks in advance! :))

Viewing 9 posts - 1 through 9 (of 9 total)

Tagged: 

You must be logged in to reply to this topic.