[Resolved] Mobile footer menu – widget to line up in same row

Home Forums Support [Resolved] Mobile footer menu – widget to line up in same row

Home Forums Support Mobile footer menu – widget to line up in same row

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1675565
    Nov

    Hi,

    I have 3 footer widgets, the first two are menus and the third one is custom HTML.
    Because the first 2 are not very wide, in the mobile view I want it to be in the same row.
    The third widget can be below that no problem.

    I tried previous code on this forum but that appears to only apply for non-menu widgets?

    #1675585
    Leo
    Staff
    Customer Support

    Hi there,

    Give this CSS a shot:

    @media (max-width: 768px) {
        .footer-widgets .footer-widget-1 {
            flex-basis: 50%;
    
        }
        .footer-widgets .footer-widget-2 {
            flex-basis: 50%;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1675673
    Nov

    Hmm.. don’t seem to work. Nothing changed. Widget 1 and Widget 2 still above and below each other.

    #1675847
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    @media (max-width: 768px) {
      .footer-widgets .inside-footer-widgets {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .footer-widgets .footer-widget-1,
      .footer-widgets .footer-widget-2 {
          flex-basis: 50%;      
    
      }
    }
    #1692072
    Nov

    Thanks! That Worked.

    #1692297
    David
    Staff
    Customer Support

    Glad to hear that!

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