[Resolved] Full Width Content – Resize Options

Home Forums Support [Resolved] Full Width Content – Resize Options

Home Forums Support Full Width Content – Resize Options

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1130865
    Eric

    Hi,

    I am working with MediaVine for advertisements and I just switched to your theme (live today after a month of testing).

    Currently, it appears to go full width at 768px and MediaVine is requesting a change to make it happen at 999px. Is that customizable? I am trying to avoid changing the parent theme or to copy everything into the child theme.

    I am willing to wait for an update to the theme if that could be an option.

    Thanks,
    Eric.

    #1130885
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this is what you are looking for:
    https://generatepress.com/forums/topic/gpp-1-9-1-woo-columns/#post-1101238

    Let me know πŸ™‚

    #1130977
    Eric

    Yes, it looks like that can work. I assume I can use an element? I have the premium plugin. Can you point me to another article on doing the setup?

    Thanks

    #1130979
    Leo
    Staff
    Customer Support

    The filter will need to be added with one of these options:
    https://docs.generatepress.com/article/adding-php/

    #1130983
    Eric

    Got it. I am already using a child theme for a few shortcode functions so I will do that.

    Eric.

    #1130985
    Leo
    Staff
    Customer Support

    Sounds good πŸ™‚

    #1131007
    Eric

    I tried this in my functions.php and it doesn’t work.

    /**
    * Snippet from Generate Press to adjust the media content size
    */
    add_filter( ‘generate_media_queries’, function( $queries ) {
    $queries[‘tablet’] = ‘(min-width: 1000px) and (max-width: 1010px)’;
    $queries[‘mobile’] = ‘(max-width: 999px)’;

    return $queries;
    } );

    #1131014
    Eric

    I am basically trying to go with the full content spacing as with mobile once it reaches 999px. Tablet and Mobile to have full content view and and drop the columns.

    #1131135
    Eric

    How do you validate if the function is getting called and doing what it is supposed to do?

    Thanks

    #1131183
    Tom
    Lead Developer
    Lead Developer

    Hi Eric,

    So you want the content area to go full width at 1000px, pushing the sidebar down below the content?

    If so, try this CSS only:

    @media (max-width: 1000px) {
        .sidebar,
        .content-area {
            float: none;
            width: 100%;
            left: 0;
            right: 0;
        }
    
        .generate-columns {
            width: 100%;
        }
    }

    Let me know πŸ™‚

    #1131255
    Eric

    I will give it a try but it’s more that the advertisers do not want the sidebar to move down. It can simply go away.

    #1131256
    Eric

    Definitely better. It think it might just work. I will have the advertiser review.

    #1131878
    Tom
    Lead Developer
    Lead Developer

    Awesome, let me know! πŸ™‚

    #1132115
    Eric

    All set. Thanks for the support.

    #1132330
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

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