Placing ad box on the right spot :)
-
Hi there,
i’m trying to place my ad box properly on my page but it doesn’t look that i will make it without your advices ??
Here is the adress of my website : https://www.khalylbouzayene.com
As you can see the add should be on the right at the same level that the name of the forum on the left !here is the CSS i wrote as suggested in few forums :
#top-adsense {
width: 468px;
height: 60px;
background: black;
margin-top: 150px;
margin-bottom: 0;
margin-right: 50px;
margin-left: 0;
}And here is my header.php :
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”content”>
*
* @package storefront
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> <?php storefront_html_tag_schema(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<title><?php storefront_title(); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”><?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<?php _e( ‘Skip to content’, ‘storefront’ ); ?><div id=”top-adsense”>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– khalylbouzayene.com Header –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-9244637116533376″
data-ad-slot=”4018100642″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<?php
do_action( ‘storefront_before_header’ ); ?>
<header id=”masthead” class=”site-header” role=”banner” <?php if ( get_header_image() != ” ) { echo ‘style=”background-image: url(‘ . get_header_image() . ‘)”;’; } ?>>
<div class=”col-full”><?php
/**
* @hooked storefront_social_icons – 10
* @hooked storefront_site_branding – 20
* @hooked storefront_secondary_navigation – 30
* @hooked storefront_product_search – 40
* @hooked storefront_primary_navigation – 50
* @hooked storefront_header_cart – 60
*/
do_action( ‘storefront_header’ ); ?>
</div>
</header><!– #masthead –><?php
/**
* @hooked storefront_header_widget_region – 10
*/
do_action( ‘storefront_before_content’ ); ?><div id=”content” class=”site-content”>
<div class=”col-full”><?php
/**
* @hooked woocommerce_breadcrumb – 10
*/
do_action( ‘storefront_content_top’ ); ?>Anybody could help ?!
Thank you !!!
- The topic ‘Placing ad box on the right spot :)’ is closed to new replies.