İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Wordpress Sağ Üst Köşeye Reklam

kerem96

0
İyinet Üyesi
Katılım
26 Eylül 2011
Mesajlar
158
Reaction score
0
Konum
Van
Merhaba arkdaşalar.Blog sitemde Hüseyin Emanet'in hazırladığı Nitro temasını kullanmaya başladım.Fakat sitenin sağ üst köşesine 468x60 boyutlarında reklam eklemek istiyorum.Reklam kodlarını header.php ye kopyaladığım zaman kodlar ya logonun altında yada sitenin en üstünde çıkıyor.Reklamı sağ üst köşeye yaslamak için ne yapmam gerekiyor?
 

PauLShark

0
İyinet Üyesi
Katılım
12 Aralık 2010
Mesajlar
1,676
Reaction score
51
Konum
Ankara
css ile halledersin.

PHP:
reklam {
	float: right;
	width: 468px;
	height: 60px;
	margin: 15px 30px 25px 0;

arkasından header.php kodu eklerken;

PHP:
<div class="reklam">

reklam kodları

</div>
 

kerem96

0
İyinet Üyesi
Katılım
26 Eylül 2011
Mesajlar
158
Reaction score
0
Konum
Van
style.css ye eklediğim zaman hata alıyorum.Sitemin style css dosyası şu sekilde

PHP:
/*
	Theme Name: Nitro
	Description: Nitro Theme by huseyinemanet
	Version: 1.0
	Author: Huseyin Emanet
	Version: 1.0
	Author URI: http://www.huseyinemanet.com
	Copyright 2011 Huseyin Emanet
	License: GNU General Public License
	$ID: style.css 2011-09-30 14:25 HuseyinEmanet $
*/

/* RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; outline: 0;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ol, ul {list-style: none;}
input, textarea {outline: 0; resize: none;}
blockquote, q {quotes: none;}
strong {font-weight: bold;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
table {border-collapse: collapse; border-spacing: 0;}
.clear {clear: both;}
@font-face {font-family: 'DroidSansRegular'; src: url('font/DroidSans-webfont.eot'); src: url('font/DroidSans-webfont.eot?#iefix') format('embedded-opentype'), url('font/DroidSans-webfont.woff') format('woff'), url('font/DroidSans-webfont.ttf') format('truetype'), url('font/DroidSans-webfont.svg#DroidSansRegular') format('svg'); font-weight: normal; font-style: normal;}
@font-face {font-family: 'DroidSansBold'; src: url('font/DroidSans-Bold-webfont.eot'); src: url('font/DroidSans-Bold-webfont.eot?#iefix') format('embedded-opentype'), url('font/DroidSans-Bold-webfont.woff') format('woff'), url('font/DroidSans-Bold-webfont.ttf') format('truetype'), url('font/DroidSans-Bold-webfont.svg#DroidSansBold') format('svg'); font-weight: normal; font-style: normal;}
h1, h2, h3, h4, h5, h6 {letter-spacing: -1px; font-family: 'Droid Sans', 'DroidSansBold', Tahoma, Arial, Sans-Serif; font-weight: bold;}

/* LAYOUT */
body {background: #1a3842 url(img/bg.png) repeat; color: #535353; font: normal 12px/23px Tahoma, Arial, Sans-Serif; text-align: left;}
a {color: #5a8493; text-decoration: none;}
a:hover {color: #757575; text-decoration: none;}
#container {background: url(img/container.png) 50% 0 no-repeat; width: 975px; margin: 0 auto;}

/* HEADER */
#header {padding: 47px 0 0;}
#header h1 {padding: 0 32px;}
#header h1 a {background: url(img/logo.png) no-repeat; width: 270px; height: 71px; display: block; text-indent: -9999px;}
#nav {margin: 33px 0 12px;}
#nav-left {background: url(img/nav.png) no-repeat; padding: 0 0 0 13px;}
#nav-right {background: url(img/nav.png) 100% 0 no-repeat; padding: 0 13px 0 0;}
#nav-bg {background: url(img/nav.png) 0 -99px repeat-x; height: 99px;}

/* PAGES */
#pages ul {float: left; padding: 18px 0 0 20px; width: 700px; height: 44px;}
#pages ul li {float: left; margin: 0 3px 0 0;}
#pages ul li a {color: #fff; display: block; padding: 0 26px; height: 44px; line-height: 37px; font-family: 'Droid Sans', 'DroidSansRegular', Tahoma, Arial, Sans-Serif; font-weight: bold; font-size: 14px; letter-spacing: -1px; text-transform: lowercase; text-shadow: 1px 1px 0 #0a191e; border-radius: 5px 5px 0 0;}
#pages ul li a:hover, #pages ul li a.active, #pages ul li.current_page_item a {background: #eee url(img/pages.png) repeat-x; color: #1d3b45; text-shadow: 1px 1px 0 #fff;}
#pages ul li.active {background: #eee url(img/pages.png) repeat-x; color: #1d3b45; text-shadow: 1px 1px 0 #fff; border-radius: 5px 5px 0 0;}
#pages ul li.active a {color: #1d3b45; text-shadow: 1px 1px 0 #fff;}
#pages form {background-position: -590px -349px; width: 210px; height: 31px; float: right; margin: 20px 18px 0 0;}
#pages input {background: none; color: #7295a1; border: 0; padding: 0; font: normal 11px Tahoma, Arial, Sans-Serif;}
#pages #s {display: block; padding: 8px 10px; width: 188px;}
#pages #searchsubmit {display: none;}
.children {display: none;}

/* CATEGORIES */
#categories {font-size: 11px;}
#categories ul {padding: 0 0 0 20px;}
#categories ul li {float: left; padding: 0 27px 0 0;}
#categories ul li a {color: #515151; display: block; font-weight: bold; padding: 4px 0; text-shadow: 1px 1px 0 #d8d8d8;}
#categories ul li a:hover {text-decoration: underline;}

/* WRAPPER */
#wrapper {margin: 0 0 25px;}
#wtl {background: url(img/wt.png) no-repeat; padding: 0 0 0 12px;}
#wtr {background: url(img/wt.png) 100% 0 no-repeat; padding: 0 12px 0 0;}
#wtb {background: url(img/wt.png) 0 -34px repeat-x; height: 34px;}
#wsl {background: url(img/ws.png) repeat-y; padding: 0 0 0 32px;}
#wsr {background: url(img/ws.png) 100% 0 repeat-y; padding: 0 30px 0 0;}
#wsb {background: #fff url(img/wsb.png) repeat-x; padding: 0;}
#wbl {background: url(img/footer.png) no-repeat; padding: 0 0 0 12px;}
#wbr {background: url(img/footer.png) 100% 0 no-repeat; padding: 0 12px 0 0;}
#wbb {background: url(img/footer.png) 0 -67px repeat-x; height: 67px;}
#siluette {background: url(img/siluette.png) 0 100% no-repeat;}

/* BREADCRUMBS */
#breadcrumbs {width: 844px; height: 29px; text-transform: uppercase; padding: 7px 0 0 68px; margin: 0 0 28px; font-size: 11px;}
#breadcrumbs span {float: right; padding: 0 15px 0 0;}

/* ARTICLE */
#article {float: left; width: 587px; padding: 0 0 100px;}
.postArea {background: url(img/linear.png) 50% 100% no-repeat; margin: 0 0 30px; padding: 0 0 16px; line-height: 20px;}
.headTitle {background-position: 0 -36px; width: 589px; height: 52px; color: #757575; margin: 0 0 10px;}
.headTitle h5 {font-size: 16px; font-weight: bold; padding: 15px 20px;}

/* LATEST COMMENTS */
.latestComments {font-size: 11px;}
.latestComments li {border-bottom: 1px solid #ebebeb; padding: 5px 0;}
.latestComments li:last-child {border-bottom: 0;}
.latestComments li a {color: #8f8f8f; font-weight: bold;}
.latestComments li a:hover {color: #5a8493;}
.latestComments li img {background: #fff; border: 1px solid #ebebeb; padding: 1px; vertical-align: middle; margin: 0 6px 0 0;}
.latestComments li img.wp-smiley {margin: 0; padding: 0; border: 0;}

.postTitle {background-position: 0 -351px; height: 54px; padding: 15px 18px; width: 551px; margin: 0 0 17px; font-size: 11px; text-shadow: 1px 1px 0 #fff;}
.postTitle h2 {color: #757575; font-size: 19px; font-weight: bold; padding: 6px 0 0; float: left; width: 420px;}
.postTitle h2 a {color: #757575;}
.postTitle h2 a:hover {color: #5a8493;}
.post-categories, .post-categories li {display: inline;}
.postMeta {color: #aaa; text-transform: uppercase; float: left; width: 420px; padding: 4px 0 0 1px;}
.postMeta a {color: #aaa; text-decoration: underline;}
.postMeta a:hover {color: #5a8493; text-decoration: underline;}
.postExtra {color: #aaa; float: right; text-align: right; padding: 8px 0 0; text-transform: uppercase;}
blockquote {background: #efefef; font: normal 14px/23px 'Droid Sans', 'DroidSansRegular', Tahoma, Arial, Sans-Serif; padding: 10px; margin: 10px 0; border-radius: 2px; border: 1px solid #ececec;}
blockquote p {padding: 0 !important;}
.post p {padding: 0 0 15px;}
.post h1, .post h2, .post h3, .post h4, .post h6, .post h6 {font-size: 18px; border-bottom: 1px solid #ececec; padding: 0 0 5px; margin: 0 0 12px;}
.post ul, .post ol {padding: 10px 20px 30px;}
.post ul li, .post ol li {background: url(img/list.png) 0 14px no-repeat; padding: 7px 20px; border-bottom: 1px dashed #ececec; font: normal 14px/23px 'Droid Sans', 'DroidSansRegular', Tahoma, Arial, Sans-Serif;}
.post img {vertical-align: middle;}

/* WP */
img.alignleft {float: left; padding: 1px; border: 1px solid #ececec; margin: 0 10px 0 0;}
img.aligncenter {display: block; margin: 0 auto; padding: 1px; border: 1px solid #ececec;}
img.alignright {float: right; padding: 1px; border: 1px solid #ececec; margin: 0 0 0 10px;}
.wp-caption {border: 1px solid #ececec; padding: 1px; margin: 10px 0 20px; width: 583px !important;}
.wp-caption .wp-caption-text {background: #f5f5f5; font-size: 11px; text-align: center; padding: 4px 0;}
.wp-caption img {width: auto; height: auto; max-width: 583px;}

/* TAGS */
.tags {background-position: 0 -126px; color: #aaa; width: 557px; height: 25px; font-size: 10px; text-transform: uppercase; margin: 0 0 34px; padding: 7px 16px;}
.tags a {color: #aaa; border-bottom: 1px solid #aaa;}
.tags a:hover {color: #5a8493; border-bottom: 1px solid #5a8493;}

/* AUTHOR */
.author {background-position: 0 -165px; width: 589px; height: 39px; margin: 0 0 14px;}
.author h5 {color: #757575; font-size: 16px; padding: 9px 20px;}
.content {margin: 0 0 35px;}
.content img.photo {float: left; padding: 1px; border: 1px solid #ebebeb; margin: 0 14px 0 0;}
.content h6 {font-size: 16px; border-bottom: 1px solid #ebebeb; float: left; width: 489px; margin: 0 0 10px; padding: 0 0 3px;}
.content p {font-size: 11px; line-height: 20px;}

/* COMMENTS */
.comments, .leavecomment {font-size: 11px;}
.comment {background-position: 0 -204px; width: 589px; height: 39px;}
.comment h5 {color: #757575; padding: 9px 20px; font-size: 16px;}
.comment span {float: right; text-transform: uppercase; padding: 9px 14px; font-size: 11px;}
.comment span a {color: #5a8493; border-bottom: 1px solid #5a8493;}
.comment span a:hover {color: #aaa; border-bottom: 1px solid #aaa;}
.commentlist {margin: 0 0 30px;}
.commentlist li.item {border-bottom: 1px solid #ebebeb; padding: 15px 0; font-size: 11px; line-height: 20px;}
.commentlist li .wp-smiley {vertical-align: middle;}
.commentlist li:first-child {padding: 10px 0 15px 0;}
.commentlist li.item img.photo {float: left; padding: 1px; border: 1px solid #ebebeb; margin: 6px 9px 0 0;}
.commentlist li.item h6.userText {font-family: Tahoma, Arial, Sans-Serif; text-transform: uppercase; letter-spacing: 0; padding: 0 0 6px;}
.commentlist li.item h6.userText span {color: #c6c6c6; font-weight: normal; float: right; text-align: right;}
.authorinfo {padding: 17px 0 0;}
.authorinfo label {color: #8f8f8f; float: left; font-size: 11px; width: 402px; cursor: pointer; font-weight: bold;}
.authorinfo ul li {border-bottom: 1px dashed #ececec; padding: 10px 0;}
.authorinfo ul li:first-child {padding: 0 0 10px;}
.input {background-position: 0 -435px; width: 185px; height: 33px; float: left;}
.input input {background: none; border: 0; padding: 0; font-family: Tahoma, Arial, Sans-Serif; font-size: 11px; color: #8f8f8f; padding: 10px; width: 165px;}
.textarea {background-position: 0 -243px; width: 589px; height: 108px; margin: 10px 0 0;}
.textarea textarea {background: none; border: 0; display: block; font: normal 11px/20px Tahoma, Arial, Sans-Serif; color: #8f8f8f; padding: 10px; width: 569px; min-height: 86px;}
.submit {background-position: -185px -435px; height: 38px; float: right; margin: 12px 0 0;}
.submit input {background: none; border: 0; display: block; padding: 19px 0 0; width: 135px; text-indent: -9999px; cursor: pointer;}
.logged {padding: 10px 0; font-size: 11px;}

/* PAGINATION */
.wp-pagenavi {background-position: 0 -88px; color: #757575; padding: 0 14px; text-shadow: 1px 1px 0 #fff; line-height: 38px; width: 561px; height: 38px; font-size: 14px; font-family: 'Droid Sans', 'DroidSansBold', Tahoma, Arial, Sans-Serif; font-weight: bold; letter-spacing: -1px;}
.wp-pagenavi a {color: #757575;}
.wp-pagenavi a:hover {color: #5a8493;}
.wp-pagenavi a, .wp-pagenavi span {padding: 0 15px 0 0;}
.wp-pagenavi .current {color: #000;}

/* SIDEBAR */
#sidebar {width: 302px; float: right;}
.sideArea {margin: 0 0 30px;}
.sideArea hgroup {height: 52px; font-size: 16px; color: #757575; width: 302px; margin: 0 0 15px;}
.sideArea hgroup h5 {padding: 15px 20px;}
.me {font-size: 11px;}
.about {background-position: -590px -36px;}
.tweet {background-position: -590px -88px;}
.tweet span {float: right; font-size: 11px; text-transform: uppercase; padding: 15px 20px;}
.social {background-position: -590px -140px;}
.recentPosts {background-position: -590px -192px;}
.buddies {background-position: -590px -244px;}
.widget-title {background-position: -590px -296px;}

/* SIDEBAR WIDGET */
.widget ul {padding: 0 15px;}
.widget ul li {background: url(img/list.png) 0 12px no-repeat; padding: 5px 20px; border-bottom: 1px dashed #ececec; font: normal 14px/23px 'Droid Sans', 'DroidSansBold', Tahoma, Arial, Sans-Serif; font-weight: bold; letter-spacing: -1px;}
.widget select {border: 1px solid #ececec; font: normal 12px/20px Tahoma, Arial, Sans-Serif; padding: 4px 6px; display: block; width: 302px;}
.widget select option {padding: 1px 0; cursor: pointer;}
#wp-calendar {width: 100%; margin: 0 auto; font-size: 11px; text-align: center;}
#wp-calendar caption {font-weight: bold;}
#wp-calendar a, #wp-calendar th {font-weight: bold;}
.widget_search label {display: none;}
.widget_search #s {border: 1px solid #ececec; color: #757575; font: normal 12px/20px Tahoma, Arial, Sans-Serif; padding: 6px; width: 230px;}
.widget_search #searchsubmit {cursor: pointer;}

/* NETWORK */
.network {padding: 0 0 10px;}
.network li {float: left; margin: 0 0 0 17px;}
.network li a {background-image: url(img/network.png); background-repeat: no-repeat; width: 29px; height: 28px; display: block; text-indent: -9999px;}
.twitter {background-position: 0 0;}
.facebook {background-position: 0 -28px;}
.rss {background-position: 0 -56px;}
.google{background-position: 0 -84px;}
.linkedin {background-position: 0 -112px;}
.yahoo {background-position: 0 -140px;}

/* LATEST POSTS */
.latest li {padding: 12px 0; border-bottom: 1px solid #ebebeb;}
.latest li img {text-indent: -9999px;}
.latest li:first-child {padding: 0 0 12px 0;}
.latest li:last-child {border-bottom: 0;}
.latest h6 {color: #757575; font-size: 14px; height: 20px;}
.latest h6 a {color: #757575;}
.latest h6 a:hover {color: #5a8493;}
.recent-post-content {color: #c6c6c6; font-size: 11px; text-transform: uppercase;}
.recent-post-content a {color: #c6c6c6;}
.recent-post-content a:hover {color: #5a8493;}

/* FRIENDS */
.friends li {background: #fff url(img/friends.png) 0 17px no-repeat; letter-spacing: -1px; font-size: 13px; font-family: 'Droid Sans', 'DroidSansBold', Tahoma, Arial, Sans-Serif; font-weight: bold;}
.friends li a {color: #757575; display: block; line-height: 40px; padding: 2px 30px;}
.friends li a:hover {color: #5a8493;}

/* TOOLTIP */
.tipsy {font-size: 11px; padding: 6px 0 0;}
.tipsy-inner {background: #f5f5f5; color: #757575; border: 1px solid #ebebeb; max-width: 200px; text-align: center; padding: 0 8px; font-weight: bold; border-radius: 2px;}

/* HIDDEN */
#nav-bg, #pages, #pages ul, #pages ul li a, #categories ul, #wtb, #wsb, #wbb, #siluette, #breadcrumbs, .authorinfo ul li, .headTitle, .postTitle, .postTitle h2, .postMeta, .post, .wp-caption, .tags, .author, .content, .comment, .commentlist li.item, #authorinfo ul, #authorinfo ul li, .input, .textarea, .submit, .wp-pagenavi, .me, .network, .latest h6, #footer, #copyright, .sideArea hgroup {overflow: hidden;}

/* SPRITE */
#breadcrumbs, .headTitle, .postTitle, .tags, .author, .comment, .input, .textarea, .submit, .wp-pagenavi, .sideArea hgroup, #pages form {background-image: url(img/imgs.png); background-repeat: no-repeat;}

/* FOOTER */
#copyright {color: #757575; margin: 0 20px; padding: 8px 0 0; font-size: 11px; text-transform: uppercase; border-top: 1px solid #e5e5e5;}
#copyright p {line-height: 20px; text-shadow: 1px 1px 0 #e8e8e8; padding: 0 15px;}
#copyright .floatRight {padding: 8px 0 0;}
#mini-logo {background: url(img/mini-logo.png) no-repeat; width: 119px; height: 50px; display: block; text-indent: -9999px; float: left; margin: -4px 0 4px -7px;}
.copy {float: left;}
.floatRight, .license {float: right; text-align: right;}

Header.php dosyası ise

PHP:
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>

	<!-- META -->
	<meta charset="<?php bloginfo('charset'); ?>" />
	
	<!-- MISCELLANEOUS -->
	<title><?php
		global $page, $paged;
		wp_title('|', true, 'right');
		bloginfo('name');
		$site_description = get_bloginfo('description', 'display');
		if ( $site_description && ( is_home() || is_front_page() ) )
			echo " | $site_description";
		if ( $paged >= 2 || $page >= 2 )
			echo ' | ' . sprintf( __('Sayfa %s', 'nitro'), max($paged, $page) );
		?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" media="all" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<!--[if lt IE 9]>
	<script src="<?php echo get_bloginfo('template_directory'); ?>/js/compatibility.js"></script>
	<![endif]-->

	<?php wp_head(); ?>



</head>
<body>
<div id="container">

	<!-- HEADER -->
	<header id="header">
		<h1><a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></h1>
		<!-- MAIN NAV -->


		<nav id="nav">
			<div id="nav-left">
				<div id="nav-right">
					<div id="nav-bg">
  
						<section id="pages">
							<ul>
								<li><a href="<?php echo home_url( '/' ); ?>">anasayfa</a></li>
								<?php wp_list_pages('title_li='); ?>
							</ul>
							<form method="get" id="searchform" action="/" >
								<input type="text" name="s" id="s" value="Arama..." onclick="if (this.value=='Arama...') this.value='';" onblur="if (this.value=='') this.value='Arama...';" />
								<input type="submit" id="searchsubmit" value="Ara" />
							</form>		
						</section>
						<section id="categories">
							<ul>
								<?php wp_list_categories('show_count=0&title_li='); ?>
							</ul>
						</section>
					</div>
				</div>
			</div>
		</nav>
		<!-- //MAIN NAV -->
	</header>
	<!-- //HEADER -->
	
	<!-- WRAPPER -->
	<section id="wrapper">
		<div id="wtl"><div id="wtr"><div id="wtb"></div></div></div>
		<div id="wsl">
			<div id="wsr">
				<div id="wsb">
					<div id="siluette">
						<nav id="breadcrumbs">
							<span>Tarih: <?php the_time('j F Y') ?></span>
							<?php if(function_exists('bcn_display')) {bcn_display();} ?>
						</nav>

Tam olarak nerelere ekliyeceğimi söylerseniz sevinirim :)
 

theoxygen

0
İyinet Üyesi
Katılım
24 Nisan 2012
Mesajlar
26
Reaction score
0
headerın altına bi div oluştur , style css ile yerini ayarla ...
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst