[Resolved] Center Widgets in Right and Left Sidebars

Home Forums Support [Resolved] Center Widgets in Right and Left Sidebars

Home Forums Support Center Widgets in Right and Left Sidebars

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #453287
    Blane

    Hello. I just purchased the premium plugin for GeneratePress. I’m in the process of setting up my site with the new theme. I would like to set the sidebars to be a specific pixel width so that the Google Ads on the right and the Ad Icons for my books are centered there. However, I’m not sure that can be done based on my reading in the support articles. Can that be done?

    If it can’t, and I have to leave it at a percentage, how do I center the widgets? I think it looks strange having the widgets left-justified in the left sidebar.

    Thanks!

    My site is https://strawberryplants.org for reference.

    #453304
    Leo
    Staff
    Customer Support

    Hi there,

    Fixed pixel width is not recommended as you will run into some responsive issue: https://generatepress.com/forums/topic/how-to-set-exact-pixels-in-content-sidebar-width/#post-441791

    To center widget, you can use this CSS:

    .inside-left-sidebar {
        text-align: center;
    }

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

    #453316
    Blane

    Thanks, that worked.

    #453381
    Leo
    Staff
    Customer Support

    No problem!

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