- This topic has 15 replies, 3 voices, and was last updated 4 years, 6 months ago by
Elvin.
-
AuthorPosts
-
October 14, 2021 at 1:47 pm #1963741
Michelle
Some of my posts are missing the “Read More” button. Here are two examples:
Example 1: “Testing the Intro Post”
The “Testing the Intro Post” does not have a “Read More” button on the Home Page https://www.reachingmyworld.com
the Author Page https://www.reachingmyworld.com/author/michelleandjordan/
or the Category Page https://www.reachingmyworld.com/category/general/The “Testing the Intro Post” DOES have a “Read More” button on the blog page https://www.reachingmyworld.com/blog/
Example 2: “Narrow Up A Child”
The “Narrow Up A Child” Post does not have a “Read More” button on the Home Page
The Author Page https://www.reachingmyworld.com/author/michelle/
Or the Category Page https://www.reachingmyworld.com/category/general/The “Narrow Up A Child” Post DOES have a “Read More” button on the blog page https://www.reachinmyworld.com/blog/
How can I fix this?
Strange that some posts show the button and some don’t. One would think that the settings would apply to all or none. The posts that are missing the “Read More” button have content that is longer than the word count set in the customizer. Also, I tried saving the posts with and without custom excerpts. Neither made a difference. I have a fair bit of Additional CSS that you may want to look at. The CSS styling makes “out-of-the-box” native WordPress archives, category, and author pages match the design of WP Show Posts Pro.
October 14, 2021 at 3:19 pm #1963790Ying
StaffCustomer SupportHi Michelle,
Can you check if these posts are using custom Excerpt in the post editor?
If so, you can use this method to activate read more link for them:
https://docs.generatepress.com/article/activating-read-custom-excerpt/October 14, 2021 at 3:32 pm #1963806Michelle
Yes, they are using custom excerpts. I will give this method a try…where do I put the code? I have Snippets.
October 14, 2021 at 3:37 pm #1963809Ying
StaffCustomer SupportIt’s because your blog page is a static page not the default “blog” or “archive page”, it’s using WP Show posts plugin to generate the posts.
October 14, 2021 at 3:49 pm #1963814Michelle
I see. So I added the code in Snippets, and it added the Read More button to the posts that have custom excerpts; however, it also added a second Read More Button to the pages that use WP Show Posts (Home Page, Blog Page…) Another problem is that the two Read More buttons are styled different. We’re part of the way there! Thank you for your help. Can you assist me with fixing these remaining issues? I have Additional CSS that once made the Read More buttons the same. Do you want me to send the CSS to you?
Here is an example of double buttons (page using WP Show Posts Pro):
https://www.reachingmyworld.com/author/michelleandjordan/Here is an example of different buttons (page not using WP Show Posts Pro):
https://www.reachingmyworld.com/author/michelleandjordan/October 14, 2021 at 3:59 pm #1963818Michelle
/*Add border around Read More button on Archive, Category, and Author pages to match WP Show Posts Pro styling on Blog page*/
div#comments p.form-submit input[type=”submit”] {
border: 1px solid transparent;
background: #f7f7f7;
border-color: #d6d6d6;
color: #b80000;
}div#comments p.form-submit input[type=”submit”]:hover {
border: 1px solid #222222;
background: #222222;
color: #FFFFFF;
}/*Border around the Read More button on author and category pages and #222222 background on hover with white text on hover*/
.archive .read-more-container a:hover {
background: #222;
color: #fff;
border-color: #222;
}
.archive .read-more-container a {
border: 2px solid #d6d6d6;
}October 14, 2021 at 4:05 pm #1963820Ying
StaffCustomer SupportFor double buttons, you can disable the ones from WP show posts:
https://www.screencast.com/t/GCWPPpGcqrWTry this CSS for the button style:
p.read-more-button-container a { border: 2px solid #d6d6d6; } p.read-more-button-container a:hover { background: #222; color: #fff; border-color: #222; }Let me know 🙂
October 14, 2021 at 4:09 pm #1963822Michelle
Ying, should I delete the CSS I sent you before adding your CSS?
October 14, 2021 at 4:14 pm #1963828Ying
StaffCustomer SupportIt doesn’t matter 🙂
October 14, 2021 at 4:23 pm #1963830Michelle
That worked, except for the Home Page (which uses WP Show Posts Pro). The hover text on the button should be white. 🙂
October 14, 2021 at 4:49 pm #1963836Michelle
I am hoping that a tweak in settings or code would make the hover text white on my Read More Button…
October 14, 2021 at 5:15 pm #1963845Elvin
StaffCustomer SupportHi Michelle,
You can try adding this CSS:
.wp-show-posts-entry-summary a:hover, .wp-show-posts-entry-content a:hover{ color: white; }Or if you want it to be WPSP list specific –
#wpsp-3004 .wp-show-posts-entry-summary a:hover, #wpsp-3004 .wp-show-posts-entry-content a:hover{ color: white; }October 14, 2021 at 5:25 pm #1963853Michelle
I tried both, and couldn’t get the text on the home page read more button to turn white. Maybe I have conflicting code somewhere?
October 14, 2021 at 5:31 pm #1963858Elvin
StaffCustomer SupportI re-tested it on your site to be sure and it seems to be working as shown here – https://share.getcloudapp.com/ApuE8Obn
Can you try clearing browser cache? Or perhaps check if you’ve copied the whole snippet. (no missing syntax)
October 14, 2021 at 5:58 pm #1963870Michelle
I am glad you see that the button is correct. I re-entered the code, also cleared my website cache, and browser cache. I tried an incognito window. I also tried it on a different computer, and on my phone. I still don’t see white text on the hover of Read More Button. Here’s the two places where I have code regarding the Read More Button:
From months ago:
/*Border around the Read More button on author and category pages and #222222 background on hover with white text on hover*/
.archive .read-more-container a:hover {
background: #222;
color: #fff;
border-color: #222;
}
.archive .read-more-container a {
border: 2px solid #d6d6d6;
}Today:
/*Styles the native WordPress Read More Button to match the WP Show Posts Pro Read More Button. Note that native WordPress pages are Archive, Category, and Author; WP Show Posts Pro pages are Home and Blog*/
p.read-more-button-container a {
border: 2px solid #d6d6d6;
}
p.read-more-button-container a:hover {
background: #222;
color: #fff;
border-color: #222;
}
.wp-show-posts-entry-summary a:hover, .wp-show-posts-entry-content a:hover{
color: white;
} -
AuthorPosts
- You must be logged in to reply to this topic.