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


    When a youtube video appears under “Blog Layout – Full sized entries” on the blog – the height becomes 200px. I need it to be 350px. I believe this is where i neeed to edit that

    ‘$avia_config = array(‘width’=>620, ‘height’=>200); // image for pages’

    My question is… how can I override the global $avia_config; within my child’s function.php so it will not be overwritten.

    Thank you for your time.


    Probably you need to use a hook to overwrite the avia_config array after the main theme functions.php is loaded – try:

    function avia_change_image_size_array() {
    global $avia_config;
    $avia_config['imgSize']['page'] = array('width'=>620, 'height'=>200);
    add_action( 'init', 'avia_change_image_size_array');


    Thanks. That worked.

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

The topic ‘Override the global $avia_config within child functions.php’ is closed to new replies.