• Решено POET_NATALY

    (@poet_nataly)


    Я поставила рекламный блок в заголовке сайта, но он встал не по средине. Подскажите как подвинуть к центру?

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Если покажете коды (по отдельности) файла куда вставлять и рекламного блока — мб Вам помогут.
    Коды показывать согласно правилам форума (п7 и14) — большие обязательно на http://pastebin.com/, небольшие можно и сюда, но так, как указано в правилах.

    Автор POET_NATALY

    (@poet_nataly)

    если всё сделала правильно, то вот здесь: http://pastebin.com/Bg8c7h23 ?
    Ни чего не понятно…

    то вот здесь: http://pastebin.com/Bg8c7h23

    Ссылки на УГсериалы может и могут кому-то пригодится, но только не для того чтобы Вам помочь.

    Автор POET_NATALY

    (@poet_nataly)

    у меня там где Вы сказали, ни чего не получается вставить

    Автор POET_NATALY

    (@poet_nataly)

    <!DOCTYPE html>
    <!--[if IE 6 ]>    <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7 ]>    <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8 ]>    <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
    
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-38332665-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script><head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<meta name="generator" content="WordPress" />
    	<!--
    	+-+-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+ +-+-+-+-+
    	|W|o|r|d|P|r|e|s|s| |i|s| |t|h|e| |b|e|s|t|
    	+-+-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+ +-+-+-+-+ -->
    <meta name="google-site-verification" content="ArvwfVgwE-SlnX5pOrJjZTR25dRHU_sUVcMvWTesz6I" />
    
    	<title><?php semantic_title(); ?></title>
    
    	<link rel="profile" href="http://purl.org/uF/hAtom/0.1/" />
    	<link rel="profile" href="http://purl.org/uF/2008/03/" />
    
    	<!-- Stylesheets -->
    	<link rel="stylesheet" href="<?php echo get_stylesheet_uri() ?>" type="text/css" media="screen, projection" />
    	<link rel="stylesheet" href="<?php echo CSS . '/print.css'; ?>" type="text/css" media="print" />
    
    	<!-- Links: RSS + Atom Syndication + Pingback etc. -->
    	<link rel="alternate" href="<?php echo get_feed_link( 'atom' ); ?>" type="application/atom+xml" title="Sitewide ATOM Feed" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    	<!--	Theme Hook
    		(Place any custom script and code here or bellow)
    	-->
    	<?php if ( is_singular() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' ); // loads the javascript required for threaded comments
    	wp_head(); ?>
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-6520639899644292";
    /* 728x90, top */
    google_ad_slot = "6917156697";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></head><!--END head-->
    
    <!--BEGIN body-->
    <body <?php body_class(); ?>>
    
    	<!--Begin infoarea-->
    	<section id="siteinfo"><div id="feedarea">
    	<dl><dt><span style="float:left;"><?php bloginfo( 'description' ) ?></span>
    		<?php echo date_i18n( __( 'l, j F Y - G:i', 'redline' ) ); ?></dt>
    	</dl></div></section>
    	<!--End infoarea -->
    
    	<!--BEGIN #container-->
    	<div id="container">
    
    	<!--BEGIN .header-->
    	<div id="header">
    
    		<div id="topmenu" role="navigation">
    			<!--Primary menu /Pages/--><nav id="prim_nav"><?php prim_redline_nav(); ?></nav><!--END Primary menu /Pages/-->
    		</div><!--END #topmenu-->
    
    		<!--Logo-->
    		<header role="banner"><div id="logo">
    		<h1 id="blog_header"><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ) ?></a></h1></div></header><!--End Logo-->
    
    		<!--Secondary menu-->
    		<div id="sec_nav" role="navigation"><?php sec_redline_nav(); ?></div>
    
    	</div><!--END .header-->
    
    	<!--BEGIN #content-->
    	<div id="content">

    ни чего не получается вставить

    http://codex.wordpress.org/%D0%A7%D0%90%D0%92%D0%9E/Pastebin

    В этом коде я вижу 2 js-скрипта от гугла.
    Первый вставлен ДО <head>, второй перед <body>

    1. ДО <head> вообще ничего быть не должно (кроме <!DOCTYPE и <html)
    2. Почитайте у гугла что и куда вставлять нужно.

    Удаляйте первый скрипт (тот, что до хедера) и вставляете его в тот файл, где должна выводится реклама.

    Автор POET_NATALY

    (@poet_nataly)

    благодарю Вас!

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Тема «Как поставить рекламный блок?» закрыта для новых ответов.