Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1061041

    Hey there,

    I got a problem with the enfold theme. Its for work where I took over the job of handling the backend in WordPress. Now there is still the Version 3.5.4 used.

    When I go to Enfold-Options and Theme Update, there is said: “No updates available. You are running the latest version (3.5.4) and then “Check Manually”. By checking manually I just get back to my dashboard.

    How can I securely update the Enfold theme to the latest version?

    Thanks in advance and best regards
    Tobi

    #1061051

    Hi Tobi,

    Please refer to this post – https://kriesi.at/support/topic/updating-to-enfold-4-5-and-validating-personal-token/ and update Enfold to the latest version via FTP :)

    Best regards,
    Yigit

    #1062543

    Hey Yigit,

    thanks so far. Just to be sure, because I have no clue at all from these things. “Update Theme and Plugins from Zip File” is recommended as an alternative to FTP.

    Do you think this might be easier?

    Best Regards
    Tobi

    #1062762

    Hi Tobi,

    Yes, it is an alternative to FTP installation. It would be easier for you however that plugin did not work for some users, probably due to server settings. If that happens to be the case, updating via FTP would surely work :)

    Best regards,
    Yigit

    #1067406

    Hey Yigit,

    here we go :-) I did update the Theme via the PluGin like it was described in the Link you did send.

    Now the site is unavailable and I get this message:

    Fatal error: Call to undefined function avia_header_class() in /www/htdocs/w013980a/implexa.de/wp-content/themes/enfold-child/header.php on line 12

    Well, by the way, apparently we did use some kind of child-theme.

    Could you offer any help?

    #1068125

    Hi,

    Thanks for the update, what exactly are you overriding in the header.php file in your child theme? You could try to either delete the file from your child theme or copy over it from the parent theme.

    Best regards,
    Rikard

    #1068209

    Hey Rikard,

    thanks for the reply: I have no idea, cause I can not really read code. Is it possible for you guys to take a look?

    This is the Enfold Header.php

    <?php
    if ( ! defined(‘ABSPATH’) ){ die(); }

    global $avia_config;

    $lightbox_option = avia_get_option( ‘lightbox_active’ );
    $avia_config[‘use_standard_lightbox’] = empty( $lightbox_option ) || ( ‘lightbox_active’ == $lightbox_option ) ? ‘lightbox_active’ : ‘disabled’;
    /**
    * Allow to overwrite the option setting for using the standard lightbox
    * Make sure to return ‘disabled’ to deactivate the standard lightbox – all checks are done against this string
    *
    * @added_by Günter
    * @since 4.2.6
    * @param string $use_standard_lightbox ‘lightbox_active’ | ‘disabled’
    * @return string ‘lightbox_active’ | ‘disabled’
    */
    $avia_config[‘use_standard_lightbox’] = apply_filters( ‘avf_use_standard_lightbox’, $avia_config[‘use_standard_lightbox’] );

    $style = $avia_config[‘box_class’];
    $responsive = avia_get_option(‘responsive_active’) != “disabled” ? “responsive” : “fixed_layout”;
    $blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;
    $av_lightbox = $avia_config[‘use_standard_lightbox’] != “disabled” ? ‘av-default-lightbox’ : ‘av-custom-lightbox’;
    $preloader = avia_get_option(‘preloader’) == “preloader” ? ‘av-preloader-active av-preloader-enabled’ : ‘av-preloader-disabled’;
    $sidebar_styling = avia_get_option(‘sidebar_styling’);
    $filterable_classes = avia_header_class_filter( avia_header_class_string() );
    $av_classes_manually = “av-no-preview”; /*required for live previews*/

    /**
    * Allows to alter default settings Enfold-> Main Menu -> General -> Menu Items for Desktop
    * @since 4.4.2
    */
    $is_burger_menu = apply_filters( ‘avf_burger_menu_active’, avia_is_burger_menu(), ‘header’ );
    $av_classes_manually .= $is_burger_menu ? ” html_burger_menu_active” : ” html_text_menu_active”;

    /**
    * Add additional custom body classes
    * e.g. to disable default image hover effect add av-disable-avia-hover-effect
    *
    * @since 4.4.2
    */
    $custom_body_classes = apply_filters( ‘avf_custom_body_classes’, ” );

    /**
    * @since 4.2.3 we support columns in rtl order (before they were ltr only). To be backward comp. with old sites use this filter.
    */
    $rtl_support = ‘yes’ == apply_filters( ‘avf_rtl_column_support’, ‘yes’ ) ? ‘ rtl_columns ‘ : ”;

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class=”<?php echo “html_{$style} “.$responsive.” “.$preloader.” “.$av_lightbox.” “.$filterable_classes.” “.$av_classes_manually ?> “>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <?php
    /*
    * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
    * located in framework/php/function-set-avia-frontend.php
    */
    if (function_exists(‘avia_set_follow’)) { echo avia_set_follow(); }

    ?>

    <!– mobile setting –>
    <?php

    if( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>’;
    ?>

    <!– Scripts/CSS and wp_head hook –>
    <?php
    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */

    wp_head();

    ?>

    </head>

    <body id=”top” <?php body_class( $custom_body_classes . ‘ ‘ . $rtl_support . $style.” “.$avia_config[‘font_stack’].” “.$blank.” “.$sidebar_styling); avia_markup_helper(array(‘context’ => ‘body’)); ?>>

    <?php

    do_action( ‘ava_after_body_opening_tag’ );

    if(“av-preloader-active av-preloader-enabled” === $preloader)
    {
    echo avia_preload_screen();
    }

    ?>

    <div id=’wrap_all’>

    <?php
    if(!$blank) //blank templates dont display header nor footer
    {
    //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
    get_template_part( ‘includes/helper’, ‘main-menu’ );

    } ?>

    <div id=’main’ class=’all_colors’ data-scroll-offset='<?php echo avia_header_setting(‘header_scroll_offset’); ?>’>

    <?php

    if(isset($avia_config[‘temp_logo_container’])) echo $avia_config[‘temp_logo_container’];
    do_action(‘ava_after_main_container’);

    #1068299

    Hi Implexa,

    You need to use some file diff tool to compare the files. If the customizations from the child theme header are not important anymore, you can just delete the file from the child theme and the website should work.

    Best regards,
    Victoria

    #1068332

    Alright, thanks Victoria,

    i compared the files and they spit out 47 deleted parts and 21 added ones.

    I now did actually just delete the line 12 in the header.php and it changed the style of my menu a little bit, but now the website works again at least

    Thanks for the help so far. I will just try to re-customize the header from hereon again.

    Best Regards
    Tobi

    #1068766

    Hi Tobi,

    Thanks for the update, we’ll leave the thread open in case you should need any further help from us.

    Best regards,
    Rikard

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