[Resolved] Sidebar containers

Home Forums Support [Resolved] Sidebar containers

Home Forums Support Sidebar containers

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #113468
    Aun

    How can I reduce the width and hight of right side bar containers?

    #113483
    Tom
    Lead Developer
    Lead Developer

    The sidebar widths can be altered using our Spacing add-on in the Customizer.

    If you’re not interested in the add-on, you can make use of the generate_left_sidebar_width and generate_right_sidebar_width filters.

    As for the height, it depends completely on the content within your widgets/sidebars. If there’s a lot of content, the sidebars will be taller etc..

    Let me know if you need more info πŸ™‚

    #118967
    pilxy

    I would like to increase sidebar width to 30%. How can I do that using filters mentioned above?

    #118976
    Tom
    Lead Developer
    Lead Developer

    This should help:

    add_filter( 'generate_right_sidebar_width','generate_custom_right_sidebar_width' );
    function generate_custom_right_sidebar_width()
    {
          return '30';
    }
    
    add_filter( 'generate_left_sidebar_width','generate_custom_left_sidebar_width' );
    function generate_custom_left_sidebar_width()
    {
          return '30';
    }
    #118982
    pilxy

    Works like a charm. πŸ™‚

    Thanks Tom, I really appreciate your help!

    #118984
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

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