Tezava pri adsense postavitvi..
4 naročniki
4 naročniki
Torej, sem zamenjal site themo in mam probleme pri adsense postavitvi v postu.
Namreč tu http://www.mgsblog.net/2007/12/11/changed-site-theme-do-you-like-it/ lahko vidite, da je text "priflikan" na adsense oglas, in imam tezave s tem, da ga locim za kaksen milimeter, tu je pa koda, ki se nahaja v singlepost.php:
</div>
</div><!-- post_headerr -->
</div><!-- post_header -->
<div class="entry"> <p><div style="float:right; padding-bottom:10px;">
<script type="text/javascript"><!--
googleadclient = "pub-4475531631924949";
//250x250, created 11/15/07
googleadslot = "0784163368";
googleadwidth = 250;
googleadheight = 250;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></p> <?php the_content(); ?>
</div>
<br clear="all" />
Ostanek kode spodaj in zgoraj sem zrezral, saj se ne rabi ( pri postavitvi v text)..Upam da mi bo kdo znal pomagat,hvala!
37 odgovorov
Kakšni <p> </p> so tam ?
Tist entry class naredi nekaj takega v css :
padding: 0 0 5px 5px .... da imaš od leve in spodaj zamik par pikslov....
/************************************************
* wrapper *
************************************************/
#container{
float: left;
width: 550px;
padding: 6px 10px 10px 10px;
text-align:justify;
background: #f9f6ef;
margin:0 auto 1px auto;
}
.post{
padding: 2px 6px 10px 6px;
}
.post h2{
font-family: Helvetica, Arial, Sans-Serif;
font-size: 16px;
margin:0 0 5px 5px;
text-align:left;
text-transform:uppercase;
}
.entry{
font-family: Helvetica, Arial, Sans-Serif;
font-size: 12px;
line-height: 1.3em;
margin: 0 0 5px 5px;
}
p.postmetadata{
margin: 0 0 5px 5px;
padding:6px;
background: #f9f6ef;
}
.navigation{
padding: 10px 0 0 0;
font-size: 14px;
font-weight: bold;
line-height: 18px;
}
.navleft{
margin:0;padding:0;
float:left;
}
.navright{
margin:0;padding:0;
float:right;
}
blockquote {
background: #f9f6ef url(images/blockquotebg.gif) no-repeat 10px 4px;
margin: 10px 25px 15px 25px;
padding: 10px 20px 15px 15px;
font-size:12px;
border-top: 1px solid #DDDDDD;
border-right: 1px solid #666666;
border-left: 1px solid #DDDDDD;
border-bottom: 1px solid #666666;
}
blockquote blockquote {
margin:5px 10px;
padding:4px 7px 10px 7px;
font-size:11px;
background:#ffffff;
border-top: 1px solid #DDDDDD;
border-right: 1px solid #666666;
border-left: 1px solid #DDDDDD;
border-bottom: 1px solid #666666;
background: #ffffff url(images/blockquotebg.gif) no-repeat 10px 4px;
}
/************************************************
* warapper header *
************************************************/
.post_header {
margin:0; padding:0;
height:60px;
background:#f9f6ef;
}
.post_headerr {
margin:0; padding:0;
}
.post_title {
margin:0 5px; padding:2px 0 0 0;
}
.posttitle a:link, .posttitle a:visited {
text-decoration: underline;
color:#fb6a02;
}
.post_title a:hover {
text-decoration: none;
color:#346ba4;
}
.details {
margin:0; padding:4px 0;
border-top:0px dashed #f9c492;
}
.files {
background:url(images/folder.gif) no-repeat;
margin:0; padding:0 0 0 20px;
}
.commentlist {
background:url(images/listcomments.gif) no-repeat;
margin:0; padding:0 0 0 20px;
}
.edit {
background:url(images/edit.gif) no-repeat;
margin:0; padding:0 0 0 20px;
}
/************************************************
* Date warapper *
************************************************/
.the_date {
display:block;
text-align: center;
float:left;height:65px;
font-family: Arial, Helvetica, sans-serif;
width:62px;
margin:0px 5px 0 0;
background:url(images/calendar.gif);
}
.date_m {
display:block;
font-size: 0.9em;
margin:0;
padding-top:5px;
color:#40ae38;
font-weight: bold;
text-align:center;
}
.date_d {
display:block;
font-size:1.2em;
margin:0;
color:#336699;
font-weight: bold;
padding:0.7em 0 1.1em 0;
text-align: center;
}
Neki glede tega mam v css, sem spremenil pod .entry kot si rekel, vendar ne jebe, pa pod post tud, ma ne jebe.. tisti <p> sem zbrisal, to je moja umetnina :o
zbriš tist <div style="float:right; padding-bottom:10px;">
pa sprement .entry v tole :
.entry{
float: right
padding: 0 0 5px 5px;
}
Pa kaj maš ti tole :)
IZBRIŠI
<div style="float:right; padding-bottom:10px;"> nad adsense kodo
Takole naj bo
**<div class="entry">**
<script type="text/javascript">
<!-- google_ad_client = "pub-4475531631924949";
//250x250, created 11/15/07
google_ad_slot = "0784163368";
google_ad_width = 250;
google_ad_height = 250;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
**</div>**
Zdaj pa mi vrze adsense nekam kjer ga ne vidim :D in popular posts gredo dol do konca sidebara, ter post se nadaljuje v sidebaru.. Kaj mam tok zjeban theme al kaj je to :eek:
Zdaj mam tako:
<div class="entry">
<script type="text/javascript">
<!-- googleadclient = "pub-4475531631924949";
//250x250, created 11/15/07
googleadslot = "0784163368";
googleadwidth = 250;
googleadheight = 250;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<?php the_content(); ?>
<br clear="all" />
<div id="nav-below" class="navigation">
nek </div> je bil za <?php the_content(); ?> pa sem ga zbrisal, pa zdaj je Most popular post widget normalno, vendar adsensa ne kaze..:eek: