- This topic has 15 replies, 2 voices, and was last updated 1 year, 5 months ago by
Leo.
-
AuthorPosts
-
June 18, 2022 at 10:51 am #2257374
Frank
Hi,
I’m trying to change my H2, H3, and H4 headings back to the color black. After I made the color changes, these headings are not consistently black in all the articles. Some of them are still the original colors. I did everything you suggest in your pre-question check, including clearing my cache.
Frank
June 18, 2022 at 11:37 am #2257422Leo
StaffCustomer SupportHi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know π
June 18, 2022 at 11:47 am #2257429Frank
Hi, Leo
It’s not one particular page with the problem. I put my website URL in the private info field so you can see the H2 & H3 colors I use. I want to change them to black. The H3 (green) will change to black, but not on all pages, and the H2 remains blue.
I put my site back to the original colors (blue & green) after my attempt failed. I can change it all back to black headings when I get home so you can inspect one of the pages if that would be helpful.
Frank
June 18, 2022 at 11:51 am #2257435Leo
StaffCustomer SupportCan you clear and disable WP Rocket first?
June 19, 2022 at 6:27 am #2257845Frank
Hi, Leo
I deactivated WP rocket, but it did not fix the problem, so I reactivated it. I don’t use the server cache on my hosting platform because I use WP Rocket.
I can’t get the H2 heading to change from blue to black.
Am I doing it correctly in GeneratePress: Colors -> Content -> change heading colors ???
June 19, 2022 at 10:52 am #2258145Leo
StaffCustomer SupportI deactivated WP rocket, but it did not fix the problem, so I reactivated it.
Can you deactivate it for us to see and properly inspect the page?
https://www.screencast.com/t/kwjBMi7VZ72Thanks!
June 19, 2022 at 10:57 am #2258147Frank
Hi, Leo
I deactivated WP Rocket, so it is currently off. Sorry about that!
Thank You,
FrankJune 19, 2022 at 11:18 am #2258165Leo
StaffCustomer SupportSo the issue here is that the
<h2>
headings have HTML inline style which is overwriting the customizer setting:
https://www.screencast.com/t/ny53fnixTC<h3> works correctly as it doesn’t have HTML inline style so the customizer setting would apply:
https://www.screencast.com/t/kw70uPJKtw8nHope this helps π
June 19, 2022 at 11:22 am #2258169Frank
So, How can I get rid of the HTML inline style on the H2 headings, so that I can change the color to black?
June 19, 2022 at 11:23 am #2258172Leo
StaffCustomer SupportHmm how did you add them in the first place?
You should try doing whatever did for
<h2>
as that’s the correct method.June 19, 2022 at 11:32 am #2258180Frank
As far as I know, I created them both the same way. I selected the text in the heading and then picked the blue color for H2 and the green color for H3. That was before your theme changed to the global color system, so those two colors were already available instead of the colors the theme now has.
I don’t know where to go from here to correct the problem with the H2 headings. I have 100 articles on this website, so I can’t manually change all the H2 headings in each article to the paragraph format and create them again.
Any ideas on how to proceed?
I noticed in Microsoft Clarity that most of the “dead clicks” in my articles are from visitors clicking on my H2 headings because they are in blue and they think they are links. That’s why I want to change them to black.
Thanks,
FrankJune 19, 2022 at 11:35 am #2258184Leo
StaffCustomer SupportThis wouldn’t have anything to do with the global colors – inline style always takes precedent over any other settings.
You can try this CSS for a very hacky solution but it should work:
.single h2.has-text-color { color: #000000 !important; }
June 19, 2022 at 11:38 am #2258187Frank
Where should I add that CSS code, in the header section of every page by creating a hook in elements?
June 19, 2022 at 11:43 am #2258191Leo
StaffCustomer SupportThe Additional CSS field in the customizer is the easiest way.
Adding CSS: https://docs.generatepress.com/article/adding-css/
June 19, 2022 at 11:49 am #2258197Frank
Yes, That worked!
Thank You so much,
Frank -
AuthorPosts
- You must be logged in to reply to this topic.