Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17720

    The default template seems to be 8 units wide for content and 4 units wide for the sidebar. Is it possible for me to change that to 9 & 3?

    I’m looking at the sidebar.php file, and I can see:

    echo "<div class='sidebar sidebar_".$sidebar." ".avia_layout_class( 'sidebar', false )." units'>";

    I’m not certain where or how the numerical units get interjected, and if it’s possible to adjust that.

    #96595

    Hi AlliantStudios,

    Kindly open wp-contentthemeschoicesfunctions.php and find this code block:

    $avia_config['layout']['sidebar_left'] 	= array('content' => 'eight', 		 'sidebar' => 'four alpha' ,'meta' => 'one alpha', 'entry' => 'seven');
    $avia_config['layout']['sidebar_right'] = array('content' => 'eight alpha', 'sidebar' => 'four', 'meta' => 'one alpha', 'entry' => 'seven');

    Just replace eight to nine, four to three, and seven to eight. The new code should look like this:

    $avia_config['layout']['sidebar_left'] 	= array('content' => 'nine', 		 'sidebar' => 'three alpha' ,'meta' => 'one alpha', 'entry' => 'eight');
    $avia_config['layout']['sidebar_right'] = array('content' => 'nine alpha', 'sidebar' => 'three', 'meta' => 'one alpha', 'entry' => 'eight');

    Hope this helps. :)

    Regards,

    Ismael

    #96596

    Wonderful!

    Is it possible to override the avid_config in a child function.php

    The following does not work:

    function ghStudios2012_setup() {
    /* thumbnails */
    ...

    /* layout */
    $avia_config['layout']['fullsize'] = array('content' => 'twelve alpha', 'sidebar' => 'hidden', 'meta' => 'one alpha', 'entry' => 'eleven');
    $avia_config['layout']['sidebar_left'] = array('content' => 'nine', 'sidebar' => 'three alpha' ,'meta' => 'one alpha', 'entry' => 'eight');
    $avia_config['layout']['sidebar_right'] = array('content' => 'nine alpha', 'sidebar' => 'three', 'meta' => 'one alpha', 'entry' => 'eight');
    }
    add_action( 'after_setup_theme', 'ghStudios2012_setup' );

    Is it possible to modify in a child theme, or do I need to edit the original?

    thanks for your help!

    #96597

    Hi AlliantStudios,

    I think its better if you modify it on the original.

    Regards,

    Ismael

    #96598

    Ok, I’m still learning and don’t always know best practices.

    I truly appreciate your help!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Adjusting Sidebar width’ is closed to new replies.