Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Centering image

  • Hi David,

    This does not seem to work for image widgets. Having said that, I can embed the image link in an HTML widget. We’ll see.

  • The problem stems from broken CSS, look for this starting point in your CSS:

    
     @media (min-width: 769px) {
            .inside-right-sidebar, .inside-left-sidebar {
                position: -webkit-sticky;
                position: sticky;
                top:20px
            }
    
            div#buddypress.buddypress-wrap {
                padding:0 40px 0 40px
            }
    
            div.wpforms-container-full .wpforms-form .wpforms-submit-container {
                text-align:center !important
            }
    
            .wpforms-confirmation-container-full, div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
                background-color: #ffffff !important;
                color:#333333 !important
            }
    
            @media (min-width: 769px) {
                .menu-item-has-children ul .dropdown-menu-toggle {
                    display:none !important
                }
            }
    
            .forminator-save-draft-link {
                color:#1E73BE !important
            }
    
            .forminator-draft-notice.draft-success {
                background:#F0F1F1 !important
            }
    
            .forminator-draft-wrap .forminator-draft-notice.draft-success {
                -webkit-box-shadow:inset 2px 0 0 0 #1f72be !important
            }
    
            div#nsl-custom-login-form-1 div.nsl-container-inline .nsl-container-buttons {
                max-width: 260px;
                margin:0 auto
            }
    
            .custom-html-widget {
                text-align:center
            }
    
            aside.widget_media_image {
                display: flex;
                justify-content: center
            }
    

    On that very first line the @media (min-width: 769px) { opens.
    But it never gets closed ie. its missing the closing }. So everything below that line falls into that @media query that only applies screens over 769px.

    So you need add in the closing bracket where its necessary.

  • Hi David,

    Interesting. I would have never thought about that. Now, I am a bit confused; what is the difference regarding the closing bracket, regarding:

    @media (min-width: 769px) {
    .inside-right-sidebar, .inside-left-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top:20px
    }

    and:

    @media (min-width: 769px) {
    .menu-item-has-children ul .dropdown-menu-toggle {
    display:none !important
    }

  • Got it now. It works.

    🙂

  • Glad to hear that 🙂

Viewing 5 posts - 17 through 21 (of 21 total)
  • You must be logged in to reply to this topic.