Site logo

[Support request] Adding a CSS Class to Element Classes on Page Hero not working

Home Forums Support [Support request] Adding a CSS Class to Element Classes on Page Hero not working

Home Forums Support Adding a CSS Class to Element Classes on Page Hero not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2601215
    brentwpeterson

    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.

    #2601431
    Leo
    Staff
    Customer Support

    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 🙂

    #2602859
    brentwpeterson

    I added the inline tages to make the CSS work

    I am also unsure on how to remove the page header from the homepage?

    #2603299
    Leo
    Staff
    Customer Support

    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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.