[Support request] Related Posts

Home Forums Support [Support request] Related Posts

Home Forums Support Related Posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #959608
    John

    Hello

    I added related posts element in before comment container hook.

    I want to display related post background full width.

    How can I do this?

    #959788
    Tom
    Lead Developer
    Lead Developer

    You’d have to do something like this:

    body {
        overflow-x: hidden;
    }
    
    .wpsp-related-posts.grid-container {
        margin-left  : calc( -100vw / 2 + 100% / 2 );
        margin-right : calc( -100vw / 2 + 100% / 2 );
        max-width    : 100vw;
    }

    If you need the inner contents to be contained, you’ll need to add a nested element inside the parent container.

    #959859
    John

    It works like a charm.

    You’re rock Tom.

    By the way, How can I add a nested element inside the parent container?

    #960355
    Tom
    Lead Developer
    Lead Developer

    No problem!

    This should work:

    <div class="wpsp-related-posts grid-container">
        <div class="inside-wpsp-related-posts">
    
        </div>
    </div>
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.