• Resolved Joe Westcott

    (@redredweb)


    Hi folks, do you know of a way to customize the functionality of the “full height alignment” option that’s now in Gutenberg?

    Referring to this option:
    https://wordpress.com/support/wordpress-editor/blocks/cover-block/#full-height-alignment

    Asking because I have a site where there’s essentially a fixed/sticky header that’s always at the top of the page, so you don’t get a full 100vh of screen real estate for the content that you want to show. So for that site, “full height” might be something like this CSS rule:

    calc( 100vh – var(–top-header-height) )

    I’m not finding any documentation on where I might modify this “full height” functionality to account for situations where the content doesn’t get 100vh of the viewport.

    In theory I might have written CSS to override the default “100vh” setting; however, WordPress inlines the height within the HTML as style=”100vh”, instead of assigning a CSS class that might control the height.

    If it’s not feasible for one to modify this behavior for now, is there a way to disable this full height alignment toggle?

    The “Theme Support” documentation explains how to enable or disable support for the newer width alignments — “alignwide” and “alignfull” — but there’s no mention of the new full height alignment / “Toggle Full Height” option.

    Thank you for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customize or disable the “full height alignment” option in Gutenberg?’ is closed to new replies.