-
BonevierParticipant
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.
Daniel TaraKeymasterIn content.php add this after
:
<a href="<?php the_permalink(); ?>">Read more »</a>
- This reply was modified 12 years, 9 months ago by Daniel Tara.
iamjimpaParticipantAwesome. 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
somegirlParticipantThe 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;carter_silverspnParticipant@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!
somegirlParticipantOh 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
Tagged: Read more
You must be logged in to reply to this topic.