Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #262201

    is it possible to set the size (width) of sidebar? I can’t seem to find that

    #262345

    Hi thanp73!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab and adjust as needed

    @media only screen and (min-width: 1340px) {
    .responsive_large .container .nine.units {
    width: 830px;
    }}
    @media only screen and (min-width: 1140px) {
    .responsive .container .nine.units {
    width: 720px;
    }}
    .container .nine.units {
    width: 630px;
    }

    Cheers!
    Yigit

    #262462

    can you give me a little detail what this does? did it just decrease the size of the page content area? I guess I still don’t know the size of the widget area, so I can size forms and images to fit therein… pls advise
    thx

    #262465

    Hi!

    Yes, the code decreases the content area and therefore, increases the sidebar width.
    You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
    then you can create any of them and copy/paste shortcode into any other content element or into text widget. You can simply use image shortcode and it would be responsive on the sidebar widget

    Best regards,
    Yigit

    #262468

    Anyway, I tried this, and the sidebar expanded for one page load, but then subsequently is not working even on hard refreshes.

    #262720

    Hi!

    Thank you all for using the theme!

    On functions.php, you can change the allotted grid units for the content and the sidebar, find this code on line 153:

    $avia_config['layout']['fullsize'] 		= array('content' => 'twelve alpha', 'sidebar' => 'hidden', 	 'meta' => 'two alpha', 'entry' => 'eleven');
    $avia_config['layout']['sidebar_left'] 	= array('content' => 'nine', 		 'sidebar' => 'three alpha' ,'meta' => 'two alpha', 'entry' => 'nine');
    $avia_config['layout']['sidebar_right'] = array('content' => 'nine alpha',   'sidebar' => 'three alpha', 'meta' => 'two alpha', 'entry' => 'nine alpha');

    Decrease the content units to eight then increase the sidebar width to four:

    $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');

    Regards,
    Ismael

    #263365

    ok wow- this is quite different than yigit’s suggestion. do I do both, or just yours? confusion is mounting…

    #263399

    I am using a child theme, I pasted the code above into said child theme functions php. I also removed yigit’s codes, above, from theme quick css.

    it appears theme has reverted to original dimensions- eg, yigits worked, this functions php above seems to have had no effect as I put it in….

    there is nothing in the functions php other than this code however- do I need to copy all from original theme/ paste to child theme/ change that row?

    sorry, I dont; do code much (at all)

    • This reply was modified 10 years, 6 months ago by thanp73.
    #263755

    Hey!

    Thank you for using the theme!

    You can do Yigit’s suggestion or use the suggestion above. Anyway, if you want to do this on a child theme, add this on functions.php:

    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);

    Regards,
    Ismael

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