- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by Andrew Misplon.
Tagged: header
- AuthorPosts
- November 7, 2018 at 2:17 pm #10870
capoleParticipantHi,
I would like to know how to change the header colour and transparency using CSS. I would like the homepage to view similar to the below
Thank you – George
November 7, 2018 at 8:14 pm #10872
Andrew MisplonKeymasterHi George
You could try something like this inserted into
Customize > Additional CSS:
.page-id-2 .site-header { background:rgba(0,128,0,.8); } .page-id-2 .site-content { margin-top: -112px; }
2
in both rules needs to be changed to the page ID you’re targetting. To find a page id, go to Pages, edit the page and check the URL, the ID number is in the URL.The background color is
background:rgba(0,128,0,.8);
0, 128, 0 is the RGB value for the color.
0.8 is the opacity.
Both should be changed to suit your design.When editing the page you can use the Page Settings meta box in the right column to remove the page title and other page-related design tasks.
Hope that helps 🙂
- AuthorPosts
You must be logged in to reply to this topic.