[Resolved] Unification of page hero vertical sizes

Home Forums Support [Resolved] Unification of page hero vertical sizes

Home Forums Support Unification of page hero vertical sizes

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2188072
    Hiroki

    I’m using page hero on my home, post, and category archive pages and there are three types of page hero.

    I want to unify all page hero vertical sizes regardless of the length of the text inside.

    How can i do this?

    https://nakagawahiroki.com

    #2188086
    Ying
    Staff
    Customer Support

    Hi Hiroki,

    You can add a custom CSS class to the container, for eg. page-hero, then you can use this CSS to target all the page heros:

    .gb-container.page-hero {
        height: 400px;
        overflow: hidden;
    }

    How to add custom CSS class to blocks: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/

    #2188179
    Hiroki

    Do I have to add to all three?
    Is 400px changeable?

    #2188181
    Fernando
    Customer Support

    Hi Hiroki,

    Yes, you would need to add page-hero to all three.

    Moreover, yes, 400px is changeable.

    Hope this clarifies. Feel free to reach out if further assistance regarding this is needed. 🙂

    #2188189
    Hiroki

    This means limiting the height to 400 in any situation, right?

    #2188195
    Fernando
    Customer Support

    Yes, it would. 🙂

    #2188199
    Hiroki

    Thank you!

    #2188201
    Fernando
    Customer Support

    You’re welcome Hiroki! 🙂

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