Can you please tell me how to reduce my default sidebar width by about 80px and add it to the main column width?
Hey clivewjones!
Please see #2 in Peter’s post here – https://kriesi.at/support/topic/creating-and-using-a-different-sidebar/#post-282286
Best regards,
Yigit
I’ll try that Yigit, thanks for the quick response.
Hi!
You are welcome :)
Please try and let us know so we can mark this thread as resolved or assist you further
Best regards,
Yigit
Hi!
Make sure you are editing the file in plain text. Either Notepad or an actual code editor so that no hidden or incorrect characters are added in. Also make sure the single quotes are the same as in the original function.
‘three alpha’
vs
'three alpha'
Regards,
Devin
Hi!
Thank you for the info.
Please use this instead:
function avia_increase_sidebar_size() {
global $avia_config;
$avia_config['layout']['fullsize'] = array('content' => 'twelve alpha', 'sidebar' => 'hidden', 'meta' => 'two alpha', 'entry' => 'eleven');
$avia_config['layout']['sidebar_left'] = array('content' => 'eight', 'sidebar' => 'four alpha' ,'meta' => 'three alpha', 'entry' => 'eight');
$avia_config['layout']['sidebar_right'] = array('content' => 'eight alpha', 'sidebar' => 'four alpha', 'meta' => 'three alpha', 'entry' => 'eight alpha');
}
add_action( 'init', 'avia_increase_sidebar_size', 1);
Cheers!
Ismael
Thanks, worked this time by changing the “eight” to “ten” and the “four” to “two”.
All functions should go into the functions.php and not the enfold-functions file as a general rule but glad you got things working now :)