-
AuthorPosts
-
January 6, 2020 at 9:25 pm #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
January 7, 2020 at 1:04 am #1170869Following 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>
<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(); }?>
January 7, 2020 at 6:24 am #1170924Hi,
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,
RikardJanuary 8, 2020 at 3:34 am #1171308Thank 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
January 8, 2020 at 9:25 am #1171360Hi 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,
RikardJanuary 8, 2020 at 2:18 pm #1171445It may be closed.
Thank you very much Rikard for your support.
Have a nice day.
Eduardo
January 8, 2020 at 4:13 pm #1171499Hi,
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 -
AuthorPosts
- The topic ‘Black bar (and transparent when scrolling) appeard above Logo-Menu area’ is closed to new replies.