- This topic has 16 replies, 3 voices, and was last updated 3 years, 2 months ago by
David.
-
AuthorPosts
-
January 6, 2023 at 6:35 am #2485825
Kristi
Right now, the h1s in my header WP Show Posts list is white, but the h1s in all the other lists on my homepage is blue. I want to change the blue, but when I tried the code I found in another support ticket, it also changes the white titles in the first list (which I don’t want to change). Here’s what I tried that changed everything:
.wp-show-posts-single .wp-show-posts-entry-title a {
color: #f00;
}Related, I want to change the hover color for just those blue h1s as well.
January 6, 2023 at 6:50 am #2485843David
StaffCustomer SupportHi there,
try this:
#page .wp-show-posts-single .wp-show-posts-entry-title a { color: #f00; } #page .wp-show-posts-single .wp-show-posts-entry-title a:hover { color: #0f0; }January 6, 2023 at 7:06 am #2485855Kristi
That worked!
One other color override I’m having an issue with is my link color in posts/pages. I put it in the customizer and it looks good, but then it reverts back to blue on the live page. I’m sure this is something in Dispatch in the Additional CSS, but I can’t figure it out.
January 6, 2023 at 8:50 am #2486088David
StaffCustomer SupportNot seeing any styles being applied to the links.
In Customizr > Colors -> Content what do you have set their for the link color ?January 6, 2023 at 9:02 am #2486112Kristi
I have it set for #179bb0 (teal), but it’s a bright blue color instead. When I change it in the customizer, it changes in the preview. However, it doesn’t ever change on the live site. I’ve tried purging site cache. After I change it and then reload the customizer, it’s gone again and has reverted to the black and white pattern that I assume is some sort of default.
January 6, 2023 at 9:08 am #2486121David
StaffCustomer SupportAre you using a child theme on the site ? Or are there any custom functions in code snippets ?
January 6, 2023 at 9:14 am #2486123Kristi
I just added a child theme this morning, but I was having this problem before doing that.
The only custom things I know of are that I’m using the Dispatch demo.
January 6, 2023 at 9:17 am #2486131David
StaffCustomer Supportwhen in the Customizer, are the changes be Published or Saved as Draft?
January 6, 2023 at 9:18 am #2486132Kristi
Published – I had already double-checked that.
January 6, 2023 at 11:36 am #2486280Kristi
Also, what we did earlier with the h1 color change ended up not being a good color for one format of WP Show Posts. Is there a way to control the color of the h1 on a list-by-list basis with WP Show Posts?
January 6, 2023 at 5:11 pm #2486493Ying
StaffCustomer SupportIs there a way to control the color of the h1 on a list-by-list basis with WP Show Posts?
The CSS needs to be modified based on WP show posts id.
January 7, 2023 at 6:00 am #2486870Kristi
Could you give me an example of what that would look like?
For example, I have a list named “Simple” with a shortcode of [wp_show_posts id=”9732″].
January 7, 2023 at 7:50 am #2487104David
StaffCustomer SupportHeres an example of that CSS:
#page #wpsp-9732 .wp-show-posts-single .wp-show-posts-entry-title a { color: #f00; } #page #wpsp-9732 .wp-show-posts-single .wp-show-posts-entry-title a:hover { color: #0f0; }In both rules you see:
#wpsp-9732that is the ID of the WP Show PostsJanuary 7, 2023 at 9:13 am #2487174Kristi
That did exactly what I needed! Thank you!
Last question on this…can I add a gradient behind the h1 for just one of the WP Show Posts lists to make it easier to read?
January 7, 2023 at 9:20 am #2487186David
StaffCustomer SupportYou can add it like so:
#page #wpsp-9732 .wp-show-posts-single .wp-show-posts-entry-title a { color: #f00; background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%); } #page #wpsp-9732 .wp-show-posts-single .wp-show-posts-entry-title a:hover { color: #0f0; }And this site you can use to generate the linear-gradient
-
AuthorPosts
- You must be logged in to reply to this topic.