Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1333475

    Hello Kriesi

    Enfold version: 4.8.8.1
    Footer is not displayed,
    Wordpress is up to date – PHP version 8.0.13
    PLUGINS:
    – Yoast Duplicate Post – Rank Math SEO – Optimus – Honeypot for Contact Form 7 – GA Analytics Germanized – Email Address Encoder – Contact Form 7 – All In One WP Security
    I also installed Embed Calendly for a short time but uninstalle it again.
    Widgets footer column1 and column2 and column3 are activated
    Footer in the theme options “show footer widgets & sockets”
    Lines with the text “Embed” appear in the HTML code. Could it be that there are still lines from the Embed Calendly plugin that interfere with the theme?
    I don’t know what to do next …
    Do you have any idea what could be the cause?
    Greetings Holger from Germany

    #1333482

    Hi Holger,

    Are you overriding header.php in a child theme? If you are, then you might have to replace that file with the parent theme file, then add your customisation back in after that. If that is not the problem, then please post admin WordPress login details in private, so that we can have a closer look.

    Best regards,
    Rikard

    #1333683

    Hello Rikard,

    thank you and sorry for my bad English :)
    sorry, I don’t quite understand what you mean. Can you have a look at the request?
    take a look in the private content / access

    Greetings Holger

    #1333719

    Hi Holger,

    Thanks for the login details. I see that you are running a child theme, but I can’t check the content since Appearance->Theme Editor is turned off on your installation. Please turn that on if you should need any further help, or if you want to check it yourself. If you can see header.php in your child theme, then please follow what I wrote earlier in this thread.

    Best regards,
    Rikard

    #1333750

    Hi Rikard,

    now the theme editor is activated. Would be great if you could now take another look at what the problem with the footer is, thank you

    Best regards,
    Holger

    #1333761

    Hi,

    Thanks for that. I see that you are overriding header.php, so replacing that file should help. After that you can add your customisations back in. If you are only adding a script or similar, then we can give you a function to use instead, and you can delete the file in question from your child theme.

    Best regards,
    Rikard

    #1333762

    Hi there,

    unfortunately I have no idea what you mean.
    What do I have to overwrite and how?
    What do I have to copy, and from where and what exactly do I have to overwrite?
    Can you copy the text in here for me, and also write what exactly I should overwrite?
    Greetings Holger

    #1333810

    Hi,

    Thanks for the update. Maybe it would be better if you reached out to the person who added this override on your site? I checked the file, and it looks like you are only adding google tag manager code to it. If that is the case, then you can add this to functions.php:

    function add_google_tag_manager() {
    ?>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5NB8C4P"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    <?php
    }
    add_action('wp_head', 'add_google_tag_manager');

    Then delete header.php from your child theme. Please keep a backup of the file in question, in case there is code that I missed.

    Best regards,
    Rikard

    #1333828

    Hi,

    I don’t know who added the Google Tag Manager code, it was probably another agency. Since I’m not using the Google Tag Manager, I deleted the code from the Child Theme Header.

    Unfortunately the footer still doesn’t work? Can it be something else?

    I deleted that
    <! – Google Tag Manager ->
    <script> (function (w, d, s, l, i) {w [l] = w [l] || []; w [l] .push ({‘gtm.start’:
    new Date (). getTime (), event: ‘gtm.js’}); var f = d.getElementsByTagName (s) [0],
    j = d.createElement (s), dl = l! = ‘dataLayer’? ‘& l =’ + l: ”; j.async = true; j.src =
    https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    }) (window, document, ‘script’, ‘dataLayer’, ‘XXX-XXXXXXXX’); </script>
    <! – End Google Tag Manager ->

    Greetings Holger

    #1333850

    Hi,

    Thanks for the update. You need to delete the file header.php from the child theme, not only a part of it. Please try that out.

    Best regards,
    Rikard

    #1333856

    Hi,
    sounds easy, laughs.
    Ok, here’s the entire header from the child theme.
    Can you delete what needs to be deleted (I’m not sure what to delete) and post it here?
    Thank you !!!
    ————————————————————————————————————————————-

    <?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″>’; }
    ?>

    <!– 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

    /**
    * WP 5.2 add a new function – stay backwards compatible with older WP versions and support plugins that use this hook
    * https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/
    *
    * @since 4.5.6
    */
    if( function_exists( ‘wp_body_open’ ) )
    {
    wp_body_open();
    }
    else
    {
    do_action( ‘wp_body_open’ );
    }

    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’);

    #1333908

    Hi,

    Thanks for the update. Please try deleting the file via FTP, not just the content. If you need help doing so, then please share FTP login details with us in private.

    Best regards,
    Rikard

    #1333956

    Hi,

    thanks for telling me to delete some file, which file? Where do I find the? What is it called exactly? Delete entire file or parts of it? Please specify, I have no idea which file this should be.

    Greetings Holger

    #1333957

    Hi,

    I once asked someone else about the Header.php file that I should delete.
    Answer was:
    Go to the directory under the base directory
    – httpdos
    – wp-content
    – enfold-child
    – header.php
    Then rename the einmach times and see if the footer is then displayed.
    And now it is displayed again.
    Sorry, but that’s how I got it. Maybe a tip for the next time. Not all of them have your expertise.
    Greetings Holger

    #1333959

    Merry Christmas

    #1333960

    Hi Holger,

    Glad you figured it out and thanks for sharing your solution.

    We wish you a Merry Christmas!🎄 Hope you have a great one with your family and loved ones :)

    Best regards,
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Footer is not displayed – Enfold version: 4.8.8.1’ is closed to new replies.