- This topic has 7 replies, 3 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
June 17, 2022 at 1:53 am #2256106
Nicolas
Hello,
I Would like to have some information for the header on the homepage just below the menu.
I would like to know if it is possible to set the color of the titles on the posts header just below the menu and if it is possible to have a background on it in order to have more readables titles and texts.
Thanks for replyingBest regards
Nicolas Teillard
June 17, 2022 at 9:32 am #2256534Ying
StaffCustomer SupportHi Nicolas,
Any chance you can link us to the site in question and point us to where we should be looking at?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know 🙂
June 19, 2022 at 10:38 pm #2258456Nicolas
Please find the information for connexion bellow in the private information field.
I would like to know if it is possible to set the color of the titles on the posts header just below the menu and if it is possible to have a background on it in order to have more readables titles and texts.
BestJune 19, 2022 at 10:59 pm #2258464Fernando Customer Support
Hi Nicolas,
To alter the color of the Post Titles in the Page Hero of your front page, here’s a CSS code you may try adding in Appearance > Customize > Additional CSS:
body.home .page-hero .wpsp-content-wrap header h2.wp-show-posts-entry-title > a { color: rgb(247 247 0); }
Then, to alter, the background of these entries, in Appearance > Customize > Additional CSS, look for this code:
.wpsp-card .wpsp-content-wrap { position: absolute; bottom: 0; left: 0; right: 0; padding: 5% 8%; -webkit-box-sizing: border-box; box-sizing: border-box; background-color: rgba(0, 0, 0, 0.35); background: -webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(80, 50, 50, 0.5)), to(rgba(0, 0, 0, 0))); background: linear-gradient(0deg, rgba(80, 50, 50, 0.5) 30%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
You’ll see a CSS rule for the background. The
0.5
value is the opacity of the bottom color of the background. The30%
is the height where this color changes to transparent. Changing these values will lighten or darken, and increase or decrease the height of the background.For instance, try replacing the entire code with this:
.wpsp-card .wpsp-content-wrap { position: absolute; bottom: 0; left: 0; right: 0; padding: 5% 8%; -webkit-box-sizing: border-box; box-sizing: border-box; background-color: rgba(0, 0, 0, 0.35); background: -webkit-gradient(linear, left bottom, left top, color-stop(50%, rgba(80, 50, 50, 0.9)), to(rgba(0, 0, 0, 0))); background: linear-gradient(0deg, rgba(80, 50, 50, 0.9) 50%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
I simply replaced
0.5
with0.9
and30%
to50%
.Kindly see the difference: https://share.getcloudapp.com/6quzx5EX
Hope this helps! If you’re referring to something else, kindly let us know.
June 19, 2022 at 11:37 pm #2258479Nicolas
Hi Fernando,
Thanks for replying me.
I have tried to add this line at the end of additional CSS but it doesn’t work :
/* Modification header */
body.home .page-hero .wpsp-content-wrap header h2.wp-show-posts-entry-title > a {
color: rgb(202 157 97);
}The other modification works well.
Best
Nicolas
BestJune 19, 2022 at 11:46 pm #2258485Fernando Customer Support
I see. There seems to be a line of code causing an issue. Specifically, this line above the new code:
.tribe-common .tribe-common-h7, .tribe-common .tribe-common-h8 a
It’s an incomplete CSS code which may probably be the reason why the new code you added isn’t working. Can you try removing it?
Kindly let us know how it goes.
June 20, 2022 at 12:45 am #2258524Nicolas
Ok, that’s fine. Thank you very much.
Best
Nicolas
June 20, 2022 at 1:06 am #2258547Fernando Customer Support
You’re welcome Nicolas! Glad that worked!
-
AuthorPosts
- You must be logged in to reply to this topic.