Код adsense на wordpress

[Удален]
1620

Здравствуйте!

Нужно поставить код adsense на wordpress. Если посмотреть скриншот, то код стоит слева в блоке, помогите пожалуйста так же само его поставить справа с таким же блоком. Пытаюсь код вставить в sidebar2.php ,но он не отображает у меня.

Между какими тегами нужно установить код если кто знает прошу написать

sidebar2.php код

<div class="art-sidebar2">

<?php if (!art_sidebar(2)): ?>

<div class="art-Block">

<div class="art-Block-tl"></div>

<div class="art-Block-tr"></div>

<div class="art-Block-bl"></div>

<div class="art-Block-br"></div>

<div class="art-Block-tc"></div>

<div class="art-Block-bc"></div>

<div class="art-Block-cl"></div>

<div class="art-Block-cr"></div>

<div class="art-Block-cc"></div>

<div class="art-Block-body">

<div class="art-BlockHeader">

<div class="l"></div>

<div class="r"></div>

<div class="art-header-tag-icon">

<div class="t"><?php _e('Archives', 'kubrick'); ?></div>

</div>

</div><div class="art-BlockContent">

<div class="art-BlockContent-body">

<?php if ( is_404() || is_category() || is_day() || is_month() ||

is_year() || is_search() || is_paged() ) {

?>

<?php /* If this is a 404 page */ if (is_404()) { ?>

<?php /* If this is a category archive */ } elseif (is_category()) { ?>

<p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>

<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>

<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>

<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>

<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>

<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>

<?php } ?>

<?php }?>

<ul>

<?php wp_get_archives('type=monthly&title_li='); ?>

</ul>

</div>

</div>

</div>

</div>

<div class="art-Block">

<div class="art-Block-tl"></div>

<div class="art-Block-tr"></div>

<div class="art-Block-bl"></div>

<div class="art-Block-br"></div>

<div class="art-Block-tc"></div>

<div class="art-Block-bc"></div>

<div class="art-Block-cl"></div>

<div class="art-Block-cr"></div>

<div class="art-Block-cc"></div>

<div class="art-Block-body">

<div class="art-BlockHeader">

<div class="l"></div>

<div class="r"></div>

<div class="art-header-tag-icon">

<div class="t"><?php _e('Links:', 'kubrick'); ?></div>

</div>

</div><div class="art-BlockContent">

<div class="art-BlockContent-body">

<ul>

<?php wp_list_bookmarks('title_li=&categorize=0'); ?>

</ul>

</div>

</div>

</div>

</div>

<?php endif ?>

</div>

jpg goog1.jpg
O
На сайте с 29.05.2008
Offline
195
#1

Создайте файл adsense.php , вставьте в него код и в index.php в нужном месте пропишите

<?php

include 'adsense.php';

?> .

[Удален]
#2
ortegas:
Создайте файл adsense.php , вставьте в него код и в index.php в нужном месте пропишите
<?php
include 'adsense.php';
?> .

зачем все так сложно делать ? Я знаю 100% что можно в sidebar2.php код поставить, вот только не знаю после каких тегов

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий