Tagged: x
-
AuthorPosts
-
June 8, 2016 at 10:34 pm #1033285
cpyderParticipantHi there,
The title is self-explanatory I suppose.
I have purchased your awesome theme and have been using it on my local development server. I noticed the some posts do not show the ‘Read More..’ tag.
A little more digging showed up that it is missing for posts that have Manual Excerpts. To prove my point, I put a manual excerpt ‘Hand Crafted’ and sure enough the read more tag was gone.
Any fixes??
Thanks for your time.
June 9, 2016 at 12:35 am #1033434
RupokMemberWould you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
June 9, 2016 at 12:17 pm #1034353
cpyderParticipantHi Rupok,
As I said, it is still on my ‘local’ development server. Its on localhost/ so giving the credentials is a no go as of now.
But as I said that it is happening with posts with manual excerpts, may be you could re-produce the issue on your end.??
June 9, 2016 at 7:30 pm #1034854
Rue NelModeratorHello There,
I am another staff checking on this thread! The read more link in the excerpts will only display if the excerpt is being summarize and have exceeded the default excerpt length. When you have a manual excerpt, you will notice that it will all display no matter how many lines you’ve got. An auto-generated excerpt will also have all shortcodes and tags removed. It is trimmed down to a word-boundary and the default length is 55 words. For languages in which words are (or can be) described with single characters (ie. East-Asian languages) the word-boundary is actually the character. Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.
Hope this helps.
June 10, 2016 at 3:25 am #1035514
cpyderParticipantHi Rue,
So I am sure, this part is a bug in the theme. Because I have carefully crafted excerpts for all posts. And now as X works, it does not produce any link in search results. I hope you dont expect me to go and remove manual excerpts from all the content. I am not going to do that as the manually crafted Excerpts are an important aspect of SEO as well.
I guess this needs to be fixed
Thanks for your time
Cheers
June 10, 2016 at 5:46 am #1035666
LelyModeratorHi There,
Can you try adding the following code on your child theme’s functions.php file:
function custom_excerpt($text) { // custom 'read more' link if (strpos($text, '[...]')) { $excerpt = strip_tags(str_replace('[...]', '... <a href="'.get_permalink().'">Read More...</a>', $text), "<a>"); } else { $excerpt = '<p>' . strip_tags($text) . '<a class="read-more" href="'.get_permalink().'">Read More...</a></p>'; } return $excerpt; } add_filter('the_excerpt', 'custom_excerpt');Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1033285 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
