Archived topic
Adding a CSS Class to Element Classes on Page Hero not working
3 replies · Started by brentwpeterson on April 7, 2023
I have the following class on my Page Hero
<h1 class="home-justify">Attract More Customers and Grow Your Business with the Power of Organic Search</h1>
I added this to my Element Classes
.home-justify { text-align: left; }
When I view my page the text is still centered.
Hi 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-information
Let me know :)
I added the inline tages to make the CSS work
I am also unsure on how to remove the page header from the homepage?
This line is CSS and it cannot be added in the class field:
https://www.screencast.com/t/BEMaiSQAZXG
I also don't think you need to create a page hero for that section - have you considered adding that section straight to the home page content? There shouldn't be any CSS and HTML required if you are already using GenerateBlocks.
Let me know :)