Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #260908

    hi, i created a enfold child theme and edited the parent function php and now i have
    Parse error: syntax error, unexpected ‘{‘ in /home3/bjr/public_html/wp-content/themes/enfoldchildtheme/functions.php on line 7.

    I downloaded filezilla and uploaded the enfold theme and found the functions php but i don’t know how to fix it from there. here is what it looks like:
    <?php

    global $avia_config;

    /*
    * if you run a child theme and dont want to load the default functions.php file
    * set the global var below in you childthemes function.php to true:
    *
    * example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
    * The default functions.php file will then no longer be loaded. You need to make sure then
    * to include framework and functions that you want to use by yourself.
    *
    * This is only recommended for advanced users
    */

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    /*
    * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
    */
    $avia_config[‘posts_on_current_page’] = array();

    /*
    * wpml multi site config file
    * needs to be loaded before the framework
    */

    require_once( ‘config-wpml/config.php’ );

    /*
    * These are the available color sets in your backend.
    * If more sets are added users will be able to create additional color schemes for certain areas
    *
    * The array key has to be the class name, the value is only used as tab heading on the styling page
    */

    $avia_config[‘color_sets’] = array(
    ‘header_color’ => ‘Header’,
    ‘main_color’ => ‘Main Content’,
    ‘alternate_color’ => ‘Alternate Content’,
    ‘footer_color’ => ‘Footer’,
    ‘socket_color’ => ‘Socket’
    );

    plz any help

    • This topic was modified 9 years, 11 months ago by brandonritt.
    #260984

    Hi brandonritt!

    If you want to get the parent back to the base theme then you can re-load it over ftp following along with this video: https://vimeo.com/channels/aviathemes/67209750

    Best regards,
    Devin

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