Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261703

    Hi,
    at first thanks for this great theme. I love it.

    But I have a problem with the functions-php in my child-theme. I want to have the following modifications. The code I use is:

    <?php

    /* ————————————————————————————————————————–
    Thumbnails
    /* ————————————————————————————————————————–*/

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>80, ‘height’=>80);
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>300, ‘height’=>300);
    $avia_config[‘imgSize’][‘square_small’] = array(‘width’=>180, ‘height’=>180);
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>450, ‘height’=> 300);
    $avia_config[‘imgSize’][‘singlepic’] = array(‘width’=>600, ‘height’=>600 , ‘crop’ => false);
    $avia_config[‘imgSize’][‘masonry’] = array(‘width’=>377, ‘height’=>377 , ‘crop’ => false);
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>1000, ‘height’=>450);

    /* ————————————————————————————————————————–
    Sidebar
    /* ————————————————————————————————————————–*/

    $avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘twelve alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ‘two alpha’, ‘entry’ => ‘eleven’);
    $avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘ten’, ‘sidebar’ => ‘two alpha’ ,’meta’ => ‘two alpha’, ‘entry’ => ‘ten’);
    $avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘ten alpha’, ‘sidebar’ => ‘two alpha’, ‘meta’ => ‘two alpha’, ‘entry’ => ‘ten alpha’);

    /* ————————————————————————————————————————–
    * Tiled Mosaic
    /* ————————————————————————————————————————–*/

    if ( ! isset( $content_width ) )
    $content_width = 800;

    And now my problem. It works fine, if I change the file in the parent-theme, but if I use this code as a functions.php in my child-theme, I get a blank page in my browser each time. So I have to overwrite the file again and again whith ervery update oft the parent theme.

    Do you have any idea about this error?

    Kind regards
    Cora

    #262078

    Hi Cora!

    The php is incorrectly using quotation marks so if you were to edit the parent it would be correct but adding to a child theme it would cause a php failure.

    For example this is wrong:
    $avia_config['imgSize']['widget'] = array(‘width’=>80, ‘height’=>80);
    this is correct:
    $avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36);

    Regards,
    Devin

    #262199

    Hi Devin,
    thanks for your answer. I don´t know why, but these incorrectly quotation marks are happened by copy the code in the answer-field here, in my child-functions.php are the correct ones. So it can´t be the reason for the error.
    Have you any another idea?

    Regards,
    Cora

    (Sorry for my bad english.)

    #263112

    Hi!

    Do you have access to your PHP log? i think the answer resides there.

    Regards,
    Josue

    #263542

    Hi Josue,
    I don´t know, where I can find this PHP log. I have searched for it in the files from my webhost via ftp, but I couldn´t find it. At the moment, I don´t have a blank page, my site works, but the php-settings in my child php aren´t active.

    Regards,
    Cora

    • This reply was modified 10 years, 7 months ago by coralys.
    #263547

    Hi!

    Normally when a blank page appears it’s related to a PHP issue, sadly the only way to find out is to check the log (you could ask your hosting provider about this).

    Best regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.