Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #226864

    hello,
    i modify the right sidebar width with (in fuction.php) :
    $avia_config['layout']['sidebar_right'] = array('content' => 'ten alpha', 'sidebar' => 'two', 'meta' => 'one alpha', 'entry' => 'seven');

    But i would like to add this to my child theme.
    I look to http://codex.wordpress.org/Child_Themes and to https://vimeo.com/channels/aviathemes/67221517
    but i don’t understand…

    Can you help me ?

    #227039

    Hi!

    Use this code (put it in child theme functions.php):

    function avia_change_sidebar_layout() {
    global $avia_config;
    $avia_config['layout']['sidebar_right'] = array('content' => 'ten alpha', 'sidebar' => 'two', 'meta' => 'one alpha', 'entry' => 'seven');
    }
    add_action( 'init', 'avia_change_sidebar_layout');
    

    Cheers!
    Josue

    #227350

    Great !!
    you’re the best :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘add php code to child theme’ is closed to new replies.