-
AuthorPosts
-
May 9, 2014 at 7:49 am #262201
is it possible to set the size (width) of sidebar? I can’t seem to find that
May 9, 2014 at 1:43 pm #262345Hi 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!
YigitMay 9, 2014 at 5:00 pm #262462can 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
thxMay 9, 2014 at 5:05 pm #262465Hi!
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 widgetBest regards,
YigitMay 9, 2014 at 5:09 pm #262468Anyway, I tried this, and the sidebar expanded for one page load, but then subsequently is not working even on hard refreshes.
May 10, 2014 at 6:23 am #262720Hi!
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,
IsmaelMay 12, 2014 at 5:21 pm #263365ok wow- this is quite different than yigit’s suggestion. do I do both, or just yours? confusion is mounting…
May 12, 2014 at 6:10 pm #263399I 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, 7 months ago by thanp73.
May 13, 2014 at 6:32 am #263755Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.