Archived topic
Help with page title background color and text color and alignment
4 replies · Started by Christopher on September 6, 2022
Hello,
On the front page of my website, I was able to change the background color and text color and alignment through my appearance and customize the section for Generatepress.
However, I can't seem to figure out how to make each page title the same background color and text color and centered. Please see the first pic of how I want each page title to look, and the second pic is actually how the page titles look. If I have to use CSS could you please provide the code and where to put this code so it globally affects each page title?
Thank you for any help!!!
nevermind already said centered in original post sorry
Hi there,
theres a few ways to do it, simple one is to add this CSS:
.entry-header {
padding: 40px;
text-align: center;
color: #fff;
background-color: #0f3661;
}
Ok that worked perfectly! I forgot one thing though and that is to have the font set to Oswald. How would I add that to the CSS? Thank you for your help you are awesome!
You can set that in the Customizer > Typography, in the Font Manger Add the Font, then in the Typography settings Add typography, select the H1 Element and set the font style there.