Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Enfold Child Theme – Breaking CSS on page #245078

    By way of update. I figured out how to achieve item (2)

    In the child theme’s function.php I added the following:

    
    function change_sidebar_left_layout() {
        global $avia_config;
        $avia_config['layout']['sidebar_left'] = array('content' => 'ten', 'sidebar' => 'two alpha' ,'meta' => 'two alpha', 'entry' => 'eight');
    };
    add_action('init', 'change_sidebar_left_layout');
    

    Please let me know if that is the correct way to do it.

    Thanks

    in reply to: Enfold Child Theme – Breaking CSS on page #245072

    Thanks Devin

    1) worked — I had the redo the menus and now everything appears the same.

    2) The layout override I’m having issues with. Because the Child functions.php is loaded before the parent’s file, it means that when I override the line:
    $avia_config['layout']['sidebar_left'] = array('content' => 'nine', 'sidebar' => 'three alpha' ,'meta' => 'two alpha', 'entry' => 'nine'); to have my settings, it is again overwritten by the parent theme’s function.php.

    I don’t want to have to copy & paste all the functions.php file from the parent into the child because then any updates to the parent won’t go through to the child theme. Is there a nicer ‘DRY’ way to do this? Ideally the parent functions.php should check to determine if that variable is set before setting the defaults.

    `

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