Best Premium and Free WordPress Themes › Forums › AcmeBlog › "Continue Reading" link to appear with Read More Tag
Tagged: Continue reading acmeblog tag
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by acmethemes.
-
AuthorPosts
-
October 8, 2016 at 2:53 pm #9710JaLiRaParticipant
Hi,
I am refering to Travelling Freelancer’s question as I also like to add something that says “Continue Reading” at the end of the text.
As you recommended I tried to “Please paste the below code on ‘template-parts/content.php’ below the line 43. i.e. below the code acmeblog_blog_content_layout(); …
Unfortunately in my ‘template-parts/content.php’ is no such line acmeblog_blog_content_layout();. It is also not in any other line. Do you mind to give me a hint, if something changed in the theme and where I do have to paste “<p>“>Read More</p>” to?
Thank you very much in advance
JROctober 9, 2016 at 1:30 am #9723acmethemesKeymasterHello,
You can find that codes inside acmethemes/hooks/excerpts.php file. Find the function ‘acmeblog_excerpt_more ()’ and replace the previous given code there.
Thank youOctober 12, 2016 at 8:19 pm #9800JaLiRaParticipantThank you very much for your replay. To ensure I do understand correctly I would like to clarify. I have found in acmethemes/hooks/excerpts.php the following lines:
if ( !function_exists(‘acmeblog_excerpt_more’) ) :
function acmeblog_excerpt_more($more) {
return ‘…’;
}You are saying to replace the given code. Does that mean the following?
if ( !function_exists(‘acmeblog_excerpt_more’) ) :
<p>“>Read More</p>
}October 13, 2016 at 3:49 am #9805acmethemesKeymasterAdd the below code by replacing the previous codes:
if ( !function_exists('acmeblog_excerpt_more') ) : function acmeblog_excerpt_more($more) { return '<a href="'.get_permalink().'">'.__('Read More').'</a>'; } endif; add_filter('excerpt_more', 'acmeblog_excerpt_more');
Make sure, there is no any code errors while adding the codes.
Let us know about the result.Regards,
Acme Supports -
AuthorPosts
- The topic ‘"Continue Reading" link to appear with Read More Tag’ is closed to new replies.