Support » Themes and Templates » Gamepress Restore and Google Adsense

Gamepress Restore and Google Adsense

  • Okay, I was trying to place google ad codes into the header section. I was successful in doing the leaderboard ad, however when I tried to place one where it says there is a built in ad section in this theme…I made some changes that has my page looking a little funky now. The gamepress search field is now out of alignment. My custom header doesn’t go all the way across the page and there is too much white(greyish) space around everything in the header now. I need help! I’m learning on the fly! However I do have some programming knowledge.

    here is my site address: http://www.realtalktherapist.com
    and here is the code:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    	<title><?php wp_title(); ?></title>
        <?php if(of_get_option('gamepress_favicon_radio') == 1) : ?>
    	<link rel="shortcut icon" href="<?php echo of_get_option('gamepress_favicon_url'); ?>" type="image/x-icon" />
    	<?php endif; ?>
    	<link rel="profile" href="http://gmpg.org/xfn/11" />
    	<!-- End Stylesheets -->
    	<!--[if lt IE 8]>
    	<link rel="stylesheet" href="css/style_ie.css" type="text/css" media="all"  />
    	<?php wp_head(); ?>
    <body <?php body_class(); ?>><div align="center"><script type="text/javascript"><!--
    google_ad_client = "ca-pub-7802741136187517";
    /* main */
    google_ad_slot = "2442821483";
    google_ad_width = 728;
    google_ad_height = 90;
    <script type="text/javascript"
    <!-- PAGE -->
    <div id="page">
    	<!-- HEADER -->
    	<header id="header">
            <div id="header-inner">
    		<div id="logo">
    			<?php if (of_get_option('gamepress_logo_image')) : ?>
    				<h1><a href="<?php echo home_url(); ?>"><img src="<?php echo of_get_option('gamepress_logo_image'); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a></h1>
    			<?php else : ?>
    				<h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"><?php bloginfo('name'); ?></a></h1><p><?php bloginfo('description'); ?></p>
    			<?php endif; ?>
    <div class="clear">
    		<nav<?php if (!of_get_option('gamepress_search')) : ?> class="nosearch"<?php endif; ?>>
    					'theme_location' => 'primary-menu',
    					'container' => '     ',
    					'menu_id' => 'primary-nav',
    					'container_class' => 'main-menu',
    					'menu_class' => 'nav'
    			}else {
    				<ul class="nav" id="primary-nav">
    					<?php wp_list_pages('title_li='); ?>
                <?php if (of_get_option('gamepress_search')) : ?>
    			<div id="search">
    				<?php get_search_form(); ?>
                <?php endif; ?>
    		<!-- END HEADER-INNER -->
    	<div id="content-wrapper">
    	<div id="content-inner">

  • The topic ‘Gamepress Restore and Google Adsense’ is closed to new replies.