Hallo,
ich möchte auf meinem Blog http://www.fitandsparklinglife.com unter dem Header gerne folgenden Banner einsetzen:
<script async="async" type="text/javascript" src="//tracking.blogfoster.com/js/bfs.min.js" class="bf-adslot" websiteId="1171" adslotId="14569"></script>
Ich habe dies in meiner header.php probiert, aber leider wird er mir nicht angezeigt. Anbei meine Header.php
PHP
<!DOCTYPE html>
<!--[if IE 7]><html id="ie7" <?php language_attributes(); ?>><![endif]-->
<!--[if IE 8]><html id="ie8" <?php language_attributes(); ?>><![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" href="<?php if ( get_option( 'ace_favicon' ) ) { echo esc_url( get_option( 'ace_favicon' ) ); } else { echo get_stylesheet_directory_uri(); echo "/images/favicon.gif"; } ?>" type="image/x-icon" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>?<?php echo date('l jS \of F Y h:i:s A'); ?>" type="text/css" />
<?php wp_head(); ?>
<?php echo ace_header_scripts() || ace_css() || ace_theme_css(); ?>
[COLOR=#b22222][B]<script async="async" type="text/javascript" src="//tracking.blogfoster.com/js/bfs.min.js" class="bf-adslot" websiteId="1171" adslotId="14569"></script>[/B][/COLOR]
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<span class="back-top"><i class="fa fa-angle-up"></i></span>
<?php if( get_option( 'ace_woo_cart_float' ) ) { ace_woo_cart_count(); } ?>
<?php if( get_option( 'ace_header_banner' ) ) { echo '<section class="header-banner">'; echo stripslashes( get_option( 'ace_header_banner' ) ); echo '</section>'; } ?>
<section class="wrap">
<header class="header" id="header" itemscope itemtype="http://schema.org/WPHeader">
<section class="header-icons">
<ul class="header-icons-list">
<?php if( get_option( 'ace_twitter' ) ) { ?><li><a href="<?php echo get_option( 'ace_twitter' ); ?>" class="nav-twitter radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Twitter</a></li><?php } ?>
<?php if( get_option( 'ace_facebook' ) ) { ?><li><a href="<?php echo get_option( 'ace_facebook' ); ?>" class="nav-facebook radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Facebook</a></li><?php } ?>
<?php if( get_option( 'ace_pinterest' ) ) { ?><li><a href="<?php echo get_option( 'ace_pinterest' ); ?>" class="nav-pinterest radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Pinterest</a></li><?php } ?>
<?php if( get_option( 'ace_instagram' ) ) { ?><li><a href="<?php echo get_option( 'ace_instagram' ); ?>" class="nav-instagram radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Instagram</a></li><?php } ?>
<?php if( get_option( 'ace_google_plus' ) ) { ?><li><a href="<?php echo get_option( 'ace_google_plus' ); ?>" class="nav-google radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Google Plus</a></li><?php } ?>
<?php if( get_option( 'ace_flickr' ) ) { ?><li><a href="<?php echo get_option( 'ace_flickr' ); ?>" class="nav-flickr radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Flickr</a></li><?php } ?>
<?php if( get_option( 'ace_linkedin' ) ) { ?><li><a href="<?php echo get_option( 'ace_linkedin' ); ?>" class="nav-linkedin radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Linkedin</a></li><?php } ?>
<?php if( get_option( 'ace_youtube' ) ) { ?><li><a href="<?php echo get_option( 'ace_youtube' ); ?>" class="nav-youtube radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>YouTube</a></li><?php } ?>
<?php if( get_option( 'ace_vimeo' ) ) { ?><li><a href="<?php echo get_option( 'ace_vimeo' ); ?>" class="nav-vimeo radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Vimeo</a></li><?php } ?>
<?php if( get_option( 'ace_bloglovin' ) ) { ?><li><a href="<?php echo get_option( 'ace_bloglovin' ); ?>" class="nav-bloglovin radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Bloglovin</a></li><?php } ?>
<?php if( get_option( 'ace_tumblr' ) ) { ?><li><a href="<?php echo get_option( 'ace_tumblr' ); ?>" class="nav-tumblr radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Tumblr</a></li><?php } ?>
<?php if( get_option( 'ace_rss' ) ) { ?><li><a href="<?php echo get_option( 'ace_rss' ); ?>" class="nav-rss radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>RSS Feed</a></li><?php } ?>
<?php if( get_option( 'ace_email' ) ) { ?><li><a href="mailto:<?php echo get_option( 'ace_email' ); ?>" class="nav-email radius-20" <?php if( get_option( 'ace_icons_new_windows' ) ) echo 'target="_blank"'; ?>>Email</a></li><?php } ?>
</ul>
</section>
<?php echo ace_heading(); ?>
<nav class="nav" id="<?php if( get_option( 'ace_sticky_menu' ) ) { echo 'sticky-menu'; } ?>" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu( 'theme_location=top_menu&container_class=menu&menu_class=menu&fallback_cb=false&show_home=1' ); ?>
</nav><!-- .nav -->
</header><!-- .header -->
<?php echo ace_theme_slider(); ?>
<section class="container">
<?php ace_newsletter_top(); ?>
<?php ace_featured_top(); ?>
Alles anzeigen
Ist dies die falsche Stelle für den Code oder habe ich etwas anderes falsch gemacht?
Viele Grüße
Jenny