Archived topic
Sidebar containers
5 replies · Started by Anonymous on June 9, 2015
How can I reduce the width and hight of right side bar containers?
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 :)
I would like to increase sidebar width to 30%. How can I do that using filters mentioned above?
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';
}
Works like a charm. :)
Thanks Tom, I really appreciate your help!
No problem :)
