Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1170842

    Hi.

    Maybe this happened due to recent WP upgrade or maybe I did something wrong. I really don’t know, but need your help please.

    I changed my logo into Theme Options and after I saved changes a black bar “appeard” over logo and menu div section. When I scroll down my page, images and text are visible throug this bar. This cause that logo+menu section looks like a white belt between both, this bar and page content. Before I uploaded new version of my logo, this little area remained white, the same color of bacground of div header main container.

    How could I fix this?

    Thank you very much in advance.

    Eduardo Zimbron

    #1170869

    Following Rikard’s advice, I took a look into header.php file where I inserted Google Analytics code. ¿Could I post it into the wrong place? When refreshing page,, chain of this 3 characters ” /> is visible just before page start to be displayed.

    Here’s part of header.php code (hidding real ID characters):

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class=”<?php echo “html_{$style} “.$responsive.” “.$preloader.” “.$av_lightbox.” “.$filterable_classes.” “.$av_classes_manually ?> “>
    <head><meta http-equiv=”Content-Type” content=”text/html; charset=euc-jp”>

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=XX-99999999999″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘XX-99999999999’);
    </script>

    ” />

    <?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(); }

    ?>

    #1170924

    Hi,

    You could try adding your script using a function in functions.php instead:

    function add_analytics_code(){
    ?>
    Your script goes here
    <?php
    }
    add_action('wp_head', 'add_analytics_code');

    Best regards,
    Rikard

    #1171308

    Thank you Rikard, it’s already done.

    For the moment, I quoted those three characters ” /> as a comment and problem was fixed. I don’t know why they were there, possibly when I pasted Google script I had to delete something and characters remained there.

    In addition, script now is managed by function.php instead header code as you suggested.

    Best regards,

    Eduardo

    #1171360

    Hi Eduardo,

    Great, I’m glad that you found a solution and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1171445

    It may be closed.

    Thank you very much Rikard for your support.

    Have a nice day.

    Eduardo

    #1171499

    Hi,

    Glad Rikard could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Black bar (and transparent when scrolling) appeard above Logo-Menu area’ is closed to new replies.