- This topic has 9 replies, 2 voices, and was last updated 7 years, 1 month ago by
ProDesigns.
-
AuthorPosts
-
November 14, 2017 at 3:59 am #6871
Anonymous
InactiveThe “read more” link is not showing up on my home page. Can you tell me what I’m doing wrong?
website: http://www.taxinglessons.com
TIA, and also thank you for this beautiful clean theme!
November 14, 2017 at 4:58 am #6872ProDesigns
KeymasterHi @ellcee,
Please go to Appearance >> Customize >> Theme Options >> Post(Blog) Options and change value of excerpt length like this https://prnt.sc/ha660o
If a number of words in the excerpt is less than the value you provide there, continue reading button will not appear.
Try to give 10 there and check once.
Hope it will work.
Thank you.
November 15, 2017 at 11:21 pm #6873Anonymous
InactiveThank you for the prompt reply.
That did not work, so the “read more” is not showing.
Not a big deal, readers can still click on the title to get the rest of the post; just one of those “I wonder why” questions.
November 16, 2017 at 11:40 am #6874ProDesigns
KeymasterHi @ellcee,
Can you go to Appearance >> Customize >> Theme Options >> Post Options and check if Read More Text is empty?
Have you changed any code through child theme?
November 19, 2017 at 6:05 pm #6875Anonymous
InactiveThe “Read More Text” verbiage is where it is supposed to be.
The only code changed through the child theme was to add an automatically updating copyright in the theme footer, and to remove the padding in the upper banner via CSS in the stylesheet. No other changes made because this is a beautiful theme and works very well for my purposes.
November 20, 2017 at 5:29 am #6876ProDesigns
KeymasterHi @ellcee,
It is a strange issue. Can you please provide us your site’s wp-admin logins? If it is possible to provide us login credentials we can check it and provide you a better solution. Please don’t share login details here, send it from contact us page or email us directly.
Thank you.
November 20, 2017 at 11:57 pm #6877Anonymous
InactiveWell, before I do that, can I ask if you think the problem may be that I am using the “manual excerpt” on my posts? Because I’m having the same problem on a second site with the same theme.
website: https://www.topdrawerinkcorp.com/
If I’m correctly reading the instructions about excerpts on the WordPress site (https://codex.wordpress.org/Excerpt), I may need to add a function (which I am not at all sure I am technically capable of doing) to the child theme.
From the WordPress excerpt page:
Excerpt, automatic excerpt, and teaser
The manual WordPress excerpt is often confused with the automatic excerpt or with the teaser (the part of a post that appears on the front page when you use the More tag). While both are related to the manual excerpt, they are different from it.
The relationship between the three is this: When a post has no manual excerpt and the post template uses the the_excerpt() template tag, WordPress generates an excerpt automatically by selecting the first 55 words of the post. When the post template uses the the_content() template tag, WordPress will look for the More tag and create a teaser from the content that precedes the More tag.
Thank you for your patience and assistance.
November 21, 2017 at 2:54 pm #6878ProDesigns
KeymasterHi @ellcee,
Yes, read more button will not be visible if you are inserting more tag from the editor. Try to remove it and check once.
November 22, 2017 at 3:08 am #6879Anonymous
InactiveOkay, I’m not inserting the more tag from the editor, but I am using the custom excerpt box on the posts, and that is what is causing the “read more” tag to not show up.
Instead of eliminating the custom excerpt on multiple posts, will it work if I add this code to the functions.php file in the child theme?
function modify_read_more_link() {
return ‘Your Read More Link Text‘;
}
add_filter( ‘the_content_more_link’, ‘modify_read_more_link’ );and this code to the content-single.php file in the child theme?
function child_theme_setup() {
// override parent theme’s ‘more’ text for excerpts
remove_filter( ‘excerpt_more’, ‘twentyeleven_auto_excerpt_more’ );
remove_filter( ‘get_the_excerpt’, ‘twentyeleven_custom_excerpt_more’ );
}
add_action( ‘after_setup_theme’, ‘child_theme_setup’ );OR
could I add only this code to the content-single.php file in the child theme?
function excerpt_more_link_all_the_time() {
// Remove More Link from get_the_excerpt()
function more_link() {
return ”;
}
add_filter(‘excerpt_more’, ‘more_link’);//Force read more link on all excerpts
function get_read_more_link() {
$excerpt = get_the_excerpt();
return ‘<p>’ . $excerpt . ‘ … Read More</p>’;
}
add_filter( ‘the_excerpt’, ‘get_read_more_link’ );}
add_action( ‘after_setup_theme’, ‘excerpt_more_link_all_the_time’ );Thank you for any advice you can give.
November 22, 2017 at 5:12 am #6880ProDesigns
KeymasterHi @ellcee,
You can try adding them one by one.
Hope it will work.
-
AuthorPosts
- You must be logged in to reply to this topic.