sağol ama onu biliyorum ben tek tek center kodu yazılmadan her içerğin otomatik olarak ortalanması kodunu istiyorum
hayır hayır o dediğini biliyorum paragrafın başına koymaktan bahsetmiyorum yani anlatmak istediğim her yazı her içerik için ayrı ayrı center kodu yerine yazıyı normal olarak ekledğimizde içerik otomatik olarak ortalansın demek istediğim bu istebuu.net sitesine girin anlatmak istediğim aynen bu şekilde işte
tema klasöründe single.php ve diğer dosyaları editleyebilirsin.
sen single.php dosyasının içeriğini buraya yapıştır ben yeniden düzenler tekrar post atarım.
<?php get_header(); ?>
<div id="maincol">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="postwrap">
<div class="postmeta2">
<div class="meta2inner">
<div class="pday"><?php the_time('j'); ?></div>
<div class="pmonth"><?php the_time('M/y'); ?></div>
</div>
</div>
<h2 class="posttitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postmeta">Yazan : <?php the_author_posts_link(); ?> Kategori : <?php the_category(', '); ?></div>
<div class="clr16"></div>
<div class="postcontent"><?php the_content('(devamını oku..)'); ?></div>
<div class="clr"></div>
<span class="linkpages"><?php wp_link_pages(); ?></span><div class="cleared"></div>
<?php if ( function_exists('the_tags') ) : ?>
<div class="roubcornrcontent">
<span class="posttags-single"><?php $tag = get_the_tags(); if (! $tag) {echo "Etiket Yok";} else {the_tags('', ', ', '');} ?></span>
<div class="clr"></div>
</div>
<?php endif; ?>
<div class="clr"></div>
</div> <!-- Closes topPost -->
<small><?php edit_post_link('Düzenle','',''); ?></small>
<div id="comments">
<?php if (function_exists('wp_list_comments')): ?>
<!-- WP 2.7 and above -->
<?php comments_template('', true); ?>
<?php else : ?>
<!-- WP 2.6 and below -->
<?php comments_template(); ?>
<?php endif; ?>
</div> <!-- Closes Comment -->
<div id="extrastuff">
<span id="rssleft"><?php comments_rss_link(__('Yorumları RSS ile takip edin!')); ?></span>
<span id="trackright"><?php if ( pings_open() ) : ?> · <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('Geri besleme adresi'); ?></a><?php endif; ?></span>
<div class="cleared"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="topPost">
<h2 class="topTitle"><a href="<?php the_permalink() ?>">Not Found</a></h2>
<div class="topContent"><p>Sorry, but you are looking for something that isn't here. You can search again by using <a href="#searchform">this form</a>...</p></div>
</div> <!-- Closes topPost -->
<?php endif; ?>
</div><!-- Closes Main -->
<div id="rightcol">
<?php get_sidebar(); ?>
</div>
<div class="clr"></div>
<?php get_footer(); ?>
<?php get_header(); ?>
<div id="maincol">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="postwrap">
<div class="postmeta2">
<div class="meta2inner">
<div class="pday"><?php the_time('j'); ?></div>
<div class="pmonth"><?php the_time('M/y'); ?></div>
</div>
</div>
<h2 class="posttitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postmeta">Yazan : <?php the_author_posts_link(); ?> Kategori : <?php the_category(', '); ?></div>
<div class="clr16"></div>
<div align="center" class="postcontent"><?php the_content('(devamını oku..)'); ?></div>
<div class="clr"></div>
<span class="linkpages"><?php wp_link_pages(); ?></span><div class="cleared"></div>
<?php if ( function_exists('the_tags') ) : ?>
<div class="roubcornrcontent">
<span class="posttags-single"><?php $tag = get_the_tags(); if (! $tag) {echo "Etiket Yok";} else {the_tags('', ', ', '');} ?></span>
<div class="clr"></div>
</div>
<?php endif; ?>
<div class="clr"></div>
</div> <!-- Closes topPost -->
<small><?php edit_post_link('Düzenle','',''); ?></small>
<div id="comments">
<?php if (function_exists('wp_list_comments')): ?>
<!-- WP 2.7 and above -->
<?php comments_template('', true); ?>
<?php else : ?>
<!-- WP 2.6 and below -->
<?php comments_template(); ?>
<?php endif; ?>
</div> <!-- Closes Comment -->
<div id="extrastuff">
<span id="rssleft"><?php comments_rss_link(__('Yorumları RSS ile takip edin!')); ?></span>
<span id="trackright"><?php if ( pings_open() ) : ?> · <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('Geri besleme adresi'); ?></a><?php endif; ?></span>
<div class="cleared"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="topPost">
<h2 class="topTitle"><a href="<?php the_permalink() ?>">Not Found</a></h2>
<div class="topContent"><p>Sorry, but you are looking for something that isn't here. You can search again by using <a href="#searchform">this form</a>...</p></div>
</div> <!-- Closes topPost -->
<?php endif; ?>
</div><!-- Closes Main -->
<div id="rightcol">
<?php get_sidebar(); ?>
</div>
<div class="clr"></div>
<?php get_footer(); ?>
<?php get_header(); ?>
<!-- Contents Starts here -->
<!-- main column Starts here -->
<div id="maincol">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists('wp_list_comments')): ?>
<div <?php post_class(postwrap); ?>>
<?php else : ?>
<div class="postwrap">
<?php endif; ?>
<div class="postmeta2">
<div class="meta2inner">
<div class="pday"><?php the_time('j'); ?></div>
<div class="pmonth"><?php the_time('M/y'); ?></div>
</div>
</div>
<h2 class="posttitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postmeta">Yazan : <?php the_author_posts_link(); ?> Kategori : <?php the_category(', '); ?></div>
<div class="clr16"></div>
<div class="postcontent"><?php the_content('(devamı..)'); ?></div>
<div class="clr"></div>
<div class="roubcornrcontent">
<span class="posttags"><?php $tag = get_the_tags(); if (! $tag) {echo "Etiket yok";} else {the_tags('', ', ', '');} ?></span>
<span class="postcomments"><?php comments_popup_link('Yorum yap', '1 yorum', '% yorum'); ?></span>
<span class="postmore"><a href="<?php the_permalink() ?>">devamı...</a></span>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<!-- Closes topPost -->
<br/>
<?php endwhile; ?>
<?php else : ?>
<div class="postwrap">
<h2 class="posttitle"><a href="<?php the_permalink() ?>">içerik mevcut değil.</a></h2>
<div class="postcontent"><p>Bu sayfada gösterilecek içerik bulunamadı. Lütfen arama formunu kullanarak <a href="#searchform">arama yapın</a>...</p></div>
</div>
<!-- Closes topPost -->
<?php endif; ?>
<div id="nextprevious">
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<!-- right column Starts here -->
<div id="rightcol">
<?php get_sidebar(); ?>
</div>
<div class="clr"></div>
<?php get_footer(); ?>
<?php get_header(); ?>
<!-- Contents Starts here -->
<!-- main column Starts here -->
<div id="maincol">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists('wp_list_comments')): ?>
<div <?php post_class(postwrap); ?>>
<?php else : ?>
<div class="postwrap">
<?php endif; ?>
<div class="postmeta2">
<div class="meta2inner">
<div class="pday"><?php the_time('j'); ?></div>
<div class="pmonth"><?php the_time('M/y'); ?></div>
</div>
</div>
<h2 class="posttitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postmeta">Yazan : <?php the_author_posts_link(); ?> Kategori : <?php the_category(', '); ?></div>
<div class="clr16"></div>
<div align="center" class="postcontent"><?php the_content('(devamı..)'); ?></div>
<div class="clr"></div>
<div class="roubcornrcontent">
<span class="posttags"><?php $tag = get_the_tags(); if (! $tag) {echo "Etiket yok";} else {the_tags('', ', ', '');} ?></span>
<span class="postcomments"><?php comments_popup_link('Yorum yap', '1 yorum', '% yorum'); ?></span>
<span class="postmore"><a href="<?php the_permalink() ?>">devamı...</a></span>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<!-- Closes topPost -->
<br/>
<?php endwhile; ?>
<?php else : ?>
<div class="postwrap">
<h2 class="posttitle"><a href="<?php the_permalink() ?>">içerik mevcut değil.</a></h2>
<div class="postcontent"><p>Bu sayfada gösterilecek içerik bulunamadı. Lütfen arama formunu kullanarak <a href="#searchform">arama yapın</a>...</p></div>
</div>
<!-- Closes topPost -->
<?php endif; ?>
<div id="nextprevious">
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<!-- right column Starts here -->
<div id="rightcol">
<?php get_sidebar(); ?>
</div>
<div class="clr"></div>
<?php get_footer(); ?>