[Support request] featured image -> fullscreen

Home Forums Support [Support request] featured image -> fullscreen

Home Forums Support featured image -> fullscreen

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #369835
    Peter

    In the page header builder there is a possibility to make the header fullscreen.
    But instead of creating for each post the page header manually …
    Is there a simple way to make in general the featured image fullscreen ?
    Right now I added to functions.php

    add_action( ‘generate_before_content’, ‘tu_add_featured_image’ );
    function tu_add_featured_image() {
    if ( is_singular( ‘post’ ) && has_post_thumbnail() ) {
    the_post_thumbnail();
    }
    }

    And is it possible to get a fullscreen featured image although the post is done within a contained container and not full-width?

    Google shows some solutions with backstretch.js, but would like to ask first whether there are solutions within GP.

    #369938
    Tom
    Lead Developer
    Lead Developer

    Making it so a static image is full screen probably isn’t a great idea, but you would typically use 100vh in your CSS: https://css-tricks.com/fun-viewport-units/

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