• 11-03-2009, 17:58:11
    #1
    gdi
    Üyeliği durduruldu
    merhaba arkadaslar...

    StudioPress_Red temayi kullaniyorum ve EN ustte Menu bolumunde sayfalar gorunuyor. Sayfalarin arkasinda birkac link eklemem gerekiyor ( 5 tane link )

    Header bolumunden yapiyorum ama sayfalarin CSS leri gibi olmuyor. CSS galiba php den cekiliyor header de...

    bir bakar misiniz ??
    Simdiden rep ve tesekkur

    Header.php Dosya :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if (is_home () ) { bloginfo(‘name’); }
    elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo(‘name’); }
    elseif (is_single() ) { single_post_title();}
    elseif (is_page() ) { single_post_title();}
    else { wp_title(‘’,true); } ?></title>
    <meta name="robots" content="index,follow" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="icon" type="image/x-ico" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" />
    <?php wp_head(); ?>
    
    </head>
    
    <body>
    <div id="wrapper">
    
    <div id="header">
    <div class="topright">
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </div> 
    </div> <!-- Closes Header -->
    
    <div class="cleared"></div>
    <div id="underheader">
    <div id="toprss"><a href="feed:<?php bloginfo('rss2_url'); ?>">
    <img src="<?php bloginfo('template_directory'); ?>/images/grabrss.gif" alt="grab our rss feed"></img></a>
    </div>
    
    
    <h1 class="sitename"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <h2 class="sitedesc"><?php bloginfo('description'); ?></h2>
    
    </div><!-- Closes underHeader -->
    
    
    
    <div id="nav">
    <?php function get_the_pa_ges() {
      global $wpdb;
      if ( ! $these_pages = wp_cache_get('these_pages', 'pages') ) {
         $these_pages = $wpdb->get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and post_type = "page" order by ID');
    
       }
      return $these_pages;
     }
    
     function list_all_pages(){
    
    $all_pages = get_the_pa_ges ();
    foreach ($all_pages as $thats_all){
    $the_page_id = $thats_all->ID;
    
    if (is_page($the_page_id)) {
      $addclass = ' class="current_page"';
      } else {
      $addclass = '';
      }
    $output .= '<li' . $addclass . '><a href="'.get_permalink($thats_all->ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span></a></li>';
    }
    
    return $output;
     }
    ?>
    <ul>
    <?php
    
    if (is_home()) {
      $addclass = ' class="current_page"';
      } else {
      $addclass = '';
      }
    echo "<li" . $addclass . "><a href='" . get_option('home') . "' title='Home'><span>Home</span></a></li>";
    echo list_all_pages();?>
    </ul>
    
    <div class="cleared"></div>
    </div> <!-- Closes Nav -->
    
    
    
    <div class="topcurvewhite"></div>
    <div id="main">



    CSS kodlari :

    /*  
    Theme Name: StudioPress_Red
    Theme URI: http://www.dailyblogtips.com/studiopress-wordpress-theme-released/
    Description: A clean, Adsense-ready WP theme.
    Author: Daily Blog Tips
    Author URI: http://www.dailyblogtips.com/
    Version: 1.0
    */
    
    /* Reset Defaults Starts */
    
    * {
      margin: 0;
      padding: 0;
      }
    
    h1, h2, h3, h4, h5, h6, p, blockquote {
      margin: 0;
      padding: 10px;
      }
    
    a {
      color: #A42828;
      }
    
    a:hover {
      color: #215679;
      }
    
    blockquote {
      margin: 5px 15px;
      padding: 5px 5px;
      background: #ECECEC;
      border: 1px solid #ccc;
      }
    
    code {
      color: #3366CC;
      }
    
    a img {
      border: none;
      }
    
    
    /* Reset Defaults Ends */
    
    body {
      position: relative; /* Fixes browser resizing bug in IE6 */
      margin: 0 auto 10px auto;
      width: 950px;
      font-family: Trebuchet MS, sans-serif;
      text-align: center; /* IE Centering Technique */
      background: #656565 url(images/bgbody.jpg) repeat-x top left;
      }
    
    #wrapper {
      text-align: left; /* IE Centering Technique */
      }
    
    .topcurve {
      margin-top: 15px;
      height: 13px;
      background: url(images/bgtop.gif) left top no-repeat;
      }
    
    .topcurvewhite {
      margin-top: 15px;
      height: 13px;
      background: url(images/bgtopwhite.gif) left top no-repeat;
      }
    
    .bottomcurve {
      margin: 0;
      height: 13px;
      background: url(images/bgbottom.gif) left bottom no-repeat;
      }
    
    .bottomcurvewhite {
      margin: 0;
      height: 13px;
      background: url(images/bgbottomwhite.gif) left bottom no-repeat;
      }
    
    #header {
      margin: 0;
      padding: 0 0 0 0; 
      }
    
    #header .topright {
      float: right;
      position: relative;
      margin: 0;
      padding: 0;
      text-align: right;
      color: #fff;
      }
    
    #searchform {
      margin-left: 0;
      margin-top: 0;
      margin-right: 0;
      }
    
    #searchform {
      margin-left: 5px;
      width: 213px;
      padding-top: 8px;
      height: 28px;
      background: #ccc;
      background: url(images/search.gif) left 3px no-repeat;
      }
    
    *:first-child+html #searchform { /* Filter for IE7 */
      padding: 6px 0;
      }
    
    * html #searchform { /* Filter for IE6 */
      padding: 6px 0;
      }
    
    #searchbox {
      margin-left: 5px;
      margin-bottom: 3px;
      width: 150px;
      background: none;
      border: none;
      }
    
    #searchbutton {
      width: 50px;
      background: none;
      border: none;
      }
    
    #searchbutton:hover {
      cursor: pointer;
      }
    
    #underheader {
      clear: both;
      margin-top: 20px;
      padding: 0 0 15px 0;
      }
    
    
    #underheader h1.sitename {
      padding: 0 0 0 0;
      position: relative;
      font-size: 23pt;
      width: 600px;
      }
    
    #underheader h1.sitename a {
      color: #fff;
      text-decoration: none;
      }
    
    #underheader h1.sitename a:hover {
      color: #ccc;
      text-decoration: none;
      }
    
    #underheader h2.sitedesc {
      padding: 0 0 0 0;
      position: relative;
      font-size: 12pt;
      color: #EAEAEA;
      }
    
    
    #underheader #toprss{
      float: right;
      position: relative;
      margin: 0 0 0 0;
      padding: 0;
      text-align: right;
      }
    
    /* Menu */
    
    #nav {
      clear: both;
      margin: 10px 0 -15px 0;
      }
    
    #nav ul {
      margin: 0;
      padding: 0;
      list-style: none;
      }
    
    #nav li {
      float: left;
      margin-right: 10px;
      }
    
    * html #nav li a { /* Filter for IE6 to prevent li stacking */
      float: left;
      text-decoration: none;
      }
    
    * html #nav li a span { /* Filter for IE6 to prevent li stacking */
      float: left;
      margin-left: 4px;
      text-decoration: none;
      }
    
    #nav li a {
      display: block;
      height: 26px;
      background: url(images/bgtableft.gif) left top no-repeat;
      text-transform: lowercase;
      font-size: 10pt;
      text-decoration: none;
      }
    
    #nav li a span {
      display: block;
      margin-left: 6px;
      padding-left: 5px;
      padding-right: 12px;
      line-height: 26px;
      font-weight: bold;
      color: #FFF;
      background: url(images/bgtabright.gif) right top no-repeat;
      text-decoration: none;
      }
    
    #nav li a:hover {
      background-position: left -26px;
      text-decoration: none;
      cursor: pointer; /* For IE6 */
      }
    
    #nav li a:hover span {
      background-position: right -26px;
      color: #000;
      }
    
    #nav li.current_page a {
      background-position: left -26px;
      }
    
    #nav li.current_page a span {
      background-position: right -26px;
      color: #000;
      }
    
    /* Main content */
    
    #main {
      clear: both;
      width: 925px; /* Overrides miscalculation in IE6; ignored by other browsers. */
      margin: 0;
      padding: 0 15px 15px 10px;
      background: #fff;
      }
    
    #contentwrapper {
      float: left;
      width: 550px;
      }
    
    #content {
      }
    
    #content .pageTitle {
      padding: 5px 10px 0 10px;
      font-size: 14pt;
      color: #9E1B1B;
      }
    
    .contentsearch {
      margin: 0 0 40px 100px;
      }
    
    .contentsponsors {
      margin: 0 0 30px 190px;
      }
    
    .adsense_top {
      text-align:center;
      margin:10px 0 25px 0;
      font-size:9pt;
      }
    
    .adsense_sidebar {
      text-align:center;
      margin:0 0 20px 0;
      font-size:9pt;
      }
    
    .post {
      margin: 20px 0 25px 0;
      }
    
    #content h2, #content h3, #content h4, #content h5, #content h6 {
      padding: 0 10px;
      font-weight: bold;
      }
    
    #content h2 {
      font-size: 14pt;
      }
    
    #content h3 {
      font-size: 12pt;
      }
    
    #content h4, #content h5, #content h6 {
      font-size: 11pt;
      }
    
    h2.homeTitle {
      margin: 0 0 15px 0;
      }
    
    h2.postTitle {
      padding: 0 10px;
      font-size: 14pt;
      font-weight: bold;
      color: #000;
      }
    
    h2.postTitle a {
      font-size: 14pt;
      font-weight: bold;
      text-decoration: none;
      color: #000;
      letter-spacing: -1px;
      }
    
    h2.postTitle a:hover {
      color: #9E1B1B;
      }
    
    .postMeta {
      padding: 2px 10px 4px 10px;
      font-size: 9pt;
      color: #333;
      }
    
    .postMeta .date {
      background: url(images/date.gif) left no-repeat;
      padding: 0 0 0 15px;
      }
    
    .postMeta .filed {
      background: url(images/folder.gif) left no-repeat;
      padding: 0 0 0 18px;
      margin: 0 0 0 3px;
      }
    
    .postMeta .commentcount {
      background: url(images/comments.gif) left no-repeat;
      padding: 0 0 0 18px;
      margin: 0 0 0 3px;
      }
    
    .postMeta a {
      text-decoration: none;
      }
    
    .postContent img {
      margin: 10px;
      border: 3px solid #CCC;
      }
    
    #content p, .postContent p {
      padding: 5px 10px;
      font-size: 10pt;
      color: #000;
      }
    
    .postContent ul, ol {
      padding: 0 0 0 35px;
      }
    
    .postContent ul li, ol li {
      font-size: 10pt;
      color: #000;
      }
    
    .postTags {
      margin: 15px 10px;
      font-size: 9pt;
      color: #000;
      background: #eee;
      padding: 2px 4px;
      }
    
    p.comments {
      clear: both;
      padding: 5px 10px 5px 10px;
      }
    
    p.comments a {
      padding-left: 20px;
      background: url(images/comment.gif) left top no-repeat;
      font-size: 10pt;
      text-decoration: none;
      }
    
    .commentlist {
      margin: 10px 0;
      font-size: 10pt;
      list-style: none;
      }
    
    .commentlist li {
      margin: 0 0 10px -25px;
      background: #ECECEC;
      width: 510px;
      }
    
    .commentlist li.alt {
      margin: 0 0 10px -25px;
      background: #FFFFFF;
      width: 510px;
      }
    
    .commentlist cite {
      padding: 10px;
      font-size: 10pt;
      }
    
    .commentlist cite a {
      }
    
    .commentmetadata {
      padding: 10px;
      }
    
    .comment h3 {
      padding: 0 10px;
      font-size: 12pt;
      font-weight: bold;
      text-decoration: none;
      color: #000;
      }
    
    .comment p {
      padding: 10px;
      font-size: 10pt;
      color: #000;
      }
    
    .comment a {
      text-decoration: none;
      }
    
    .comment a:hover {
      text-decoration: underline;
      }
    
    .comment textarea {
      width: 510px;
      }
    
    .comment #submit {
      width: 118px;
      height: 30px;
      background: url(images/commentbutton.gif) left top no-repeat;
      border: none;
      font-size: 9pt;
      color: #333;
      }
    
    .comment #submit:hover {
      cursor: pointer;
      }
    
    .navigation {
      margin: 10px 0;
      color: #406E8D;
      text-align: center;
      font-size: 10pt;
      }
    
    .navigation a {
      text-decoration: none;
      }
    
    
    /* Start of sidebar */
    
    #allsidebars {
      width:355px;
      float:right;
      }
    
    
    /* Sidebar top welcome box */
    
    .sidebarswrapper {
      margin-top: 0px;
      padding-top: 9px;
      width: 355px;
      background: url(images/bgsidebartop.gif) left top no-repeat;
      }
    
    .sidebars {
      width: 355px;
      background: #363636;
      }
    
    .sidebars h2 {
      padding: 0 0 2px 0;
      font-size: 11pt;
      color: #fff;
      letter-spacing: -1px;
      }
    
    .sidebars p {
      padding: 2px 0;
      font-size: 9pt;
      }
    
    #welcome {
      clear: both;
      padding: 0 10px;
      }
    
    #welcome a {
      display: inline;
      color: #B95A5A;
      }
    
    #welcome a:hover {
      color:#fff;
      }
    
    #welcome p {
      color: #fff;
      margin-top: 5px;
      padding-left: 70px;
      background: url(images/welcome.gif) left top no-repeat;
      }
    
    .sidebarsbottom {
      clear: both;
      width: 355px;
      height: 18px;
      background: url(images/bgsidebarbottom.gif) left bottom no-repeat;
      }
    
    
    /* Sidebar 2 columns widget-ready */
    
    .sidebarsB {
      width: 355px;
      margin-top: 15px;
      }
    
    .sidebar1 {
      float: left;
      width: 165px;
      }
    
    .sidebar2 {
      float: right;
      width: 165px;
      }
    
    .sidebarsB h2 {
      padding: 2px 7px;
      font-size: 11pt;
      color: #fff;
      letter-spacing: -1px;
      background: url(images/sidebar_h2.gif) left no-repeat;
      margin-bottom: 3px;
      }
    
    .sidebarsB table {
      width: 160px;
      }
    
    .sidebarsB ul {
      margin: 0;
      padding: 0 0 5px 0;
      }
    
    .sidebarsB li {
      margin-bottom: 20px;
      list-style: none;
      font-size: 9pt;
      }
    
    .sidebarsB li ul {
      padding: 0;
      }
    
    .sidebarsB ul ul li {
      margin: 0;
      padding: 3px 2px 2px 16px;
      color: #222;
      background: url(images/bullet.gif) left 7px no-repeat;
      line-height: 17px; /* Required for cross-browser consistency; cross-browser defaults vary. */
      border-bottom: 1px dotted #ccc;
      }
    
    .sidebarsB a {
      display: block;
      color: #333;
      text-decoration: none;
      display: inline;
      }
    
    .sidebarsB a:hover {
      color: #A42828;
      text-decoration: underline;
      }
    
    .sidebarsB p {
      padding: 2px 0;
      font-size: 9pt;
      }
    
    #tag_cloud a {
      display: inline;
      }
    
    .sidebarsB ul.children li {border-bottom:none;}
    .sidebarsB ul.children {margin-bottom:-5px;}
    
    
    /* Footer */
    
    #footer {
      clear: both;
      padding-top: 0;
      color: #fff;
      text-align: center; /* IE Centering Technique */
      background: #000;
      }
    
    #footer p {
      padding: 0;
      font-size: 8pt;
      color: #fff;
      text-align: center;
      }
    
    #footer a {
      color: #B95A5A;
      }
    
    #footer a:hover {
      color: #fff;
      }
    
    #credits {
      clear: both;
      margin: 0 auto;
      line-height: 19px;
      }
    
    
    /* Extras */
    
    .cleared {
      clear: both;
      }
    
    .left {
      float:left;
      }
    
    .right {
      float:right;
      }
    
    #nextprevious {
      padding:10px;
      font-size:80%;
      }
  • 11-03-2009, 19:06:56
    #2
    echo "<li" . $addclass . "><a href='" . get_option('home') . "' title='Home'><span>Home</span></a></li>"; 
    echo list_all_pages();?>
    kodundan sonra
    echo "<li><a href='birinci_baglanti' title='Birinci Bağlantı'><span>Birinci Bağlantı</span></a></li>"; 
    echo "<li><a href='ikinci_baglanti' title='Birinci Bağlantı'><span>Birinci Bağlantı</span></a></li>"; 
    echo "<li><a href='üçüncü_baglanti' title='Birinci Bağlantı'><span>Birinci Bağlantı</span></a></li>";
    şeklinde bağlantılarınızı ekleyin.
    Buradaki püf nokta bağlantı yazısını span etiketleri arasına almak.
    (Denemedim ancak olacaktır)
  • 11-03-2009, 21:39:23
    #3
    gdi
    Üyeliği durduruldu
    soyle bir sey oldu simdi : YÖS - YABANCI UYRUKLU ÖĞRENCİ SINAVI

    yani onlari orda ekledim dediginiz yerde ama digerlerin CSS leri gibi bunlarin CSS efektleri
  • 11-03-2009, 23:07:45
    #4
    Alıntı
    $output .= '<li' . $addclass . '><a href="'.get_permalink($thats_all->ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span></a></li>';
    }
    kodu bulun, altına kopyalayın.
    a ve title etiketlerini düzenlerek dener misiniz?
  • 12-03-2009, 10:45:01
    #5
    gdi
    Üyeliği durduruldu
    GangSta adlı üyeden alıntı: mesajı görüntüle
    kodu bulun, altına kopyalayın.
    a ve title etiketlerini düzenlerek dener misiniz?
    evet bu oldu

    tesekkur ederim.

    Simdi tek derdim ekledigim linkleri var olan sayfalarin saginda yer almasini istiyorum, solunda degil. onu da cozsem
  • 12-03-2009, 12:02:03
    #6
    gdi
    Üyeliği durduruldu
    site ise YÖS - YABANCI UYRUKLU ÖĞRENCİ SINAVI
  • 12-03-2009, 13:01:35
    #7
    gdi adlı üyeden alıntı: mesajı görüntüle
    evet bu oldu

    tesekkur ederim.

    Simdi tek derdim ekledigim linkleri var olan sayfalarin saginda yer almasini istiyorum, solunda degil. onu da cozsem

    Son dediğini anlayamadım, yan menüdeki linklerden bahsediyosan anladığım kadarıyla çözmüşsün sorunu.
  • 12-03-2009, 13:18:35
    #8
    gdi
    Üyeliği durduruldu
    aTk adlı üyeden alıntı: mesajı görüntüle
    Son dediğini anlayamadım, yan menüdeki linklerden bahsediyosan anladığım kadarıyla çözmüşsün sorunu.

    o linkleri sayfalarin saginda almak istiyorum...
    yani disariya giden linkler SAYFA olarak bulunan linklerin SAGINDA olmasini istiyorum

    bunu nasil yaparim ? kodlar usttedir.

    YÖS - YABANCI UYRUKLU ÖĞRENCİ SINAVI
  • 12-03-2009, 17:39:04
    #9
    Dostum menu linklerinin olduğu css kodlarını aynen css dosyasının altına kopyala, float:left yazan yeri right yap (adınıda değiştir mesela menusol, menu2 gibi). verdiğin linklerin başındaki <div id=menu> kısmını değiştiriğin css koduna göre değiştir. <div id=menusol> gibi