[Resolved] Top-bar widget right align on mobile

Home Forums Support [Resolved] Top-bar widget right align on mobile

Home Forums Support Top-bar widget right align on mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1173133
    Alf

    Hi there,
    I have a language selector widget placed in the top bar. I have set top bar alignment to “right” in the customizer which works well on desktop. However in mobile view the widget is placed in center, even with same alignment setting.

    Is there a way to “force” the widget to always right align even in mobile?

    Many thanks for your help!

    All the best,
    Alf

    #1173134
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    @media (max-width: 768px) {
        body .top-bar.top-bar-align-right {
            text-align: right;
        }
        .inside-top-bar {
            padding-right: 6px;
        }
    }

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

    Let me know if this helps ๐Ÿ™‚

    #1173137
    Alf

    Perfect that works! Is there a way I could add a for example 5px right padding to it in that mobile view as well? So to align it with the hamburger icon. Thanks again!

    #1173142
    Leo
    Staff
    Customer Support
    #1173145
    Alf

    Fantastic, thanks for the great support!

    #1173156
    Leo
    Staff
    Customer Support

    Glad I was helpful ๐Ÿ™‚

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