Sidebar width - by finleydesign - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago ago by Olga Barlow

  • Avatar: finleydesign
    finleydesign
    Participant
    May 31, 2019 at 15:36

    Where do I set the sidebar default width, I don’t want to keep changing it in each page, just need to change it as default

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 31, 2019 at 16:17

    Hello,

    Unfortunately, there is no global option. You can change it by additional customization.
    1) Find function etheme_page_config (xstore/framework/sidebars.php) and add the following code as mentioned on the screenshot
    $layout = apply_filters('etheme_page_config', $layout);

    2) Add the following code to child theme functions.php

    add_filter('etheme_page_config', 'custom_etheme_page_config', 20, 1);
    function custom_etheme_page_config($layout) {
    	$layout['sidebar-size'] = 8;
    	$layout['content-size'] = 4;
    	return $layout;
    }

    Screenshot https://prnt.sc/nvyfu6

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.