W którym miejscu należy nanieść zmiany?
<?php
/**
* Used to display post author info
*
* @package WordPress
* @subpackage GoPress WPExplorer Theme
* @since GoPress 1.0
*/
if ( ! function_exists( 'wpex_post_author’ ) ) {
function wpex_post_author() {
// Only display for standard posts
global $post;
$post_id = $post->ID;
if ( 'post’ !== get_post_type($post_id) ) return;
// Vars
$author = get_the_author();
$author_description = get_the_author_meta( 'description’ );
$author_url = esc_url( get_author_posts_url( get_the_author_meta( 'ID’ ) ) );
$author_avatar = get_avatar( get_the_author_meta( 'user_email’ ), apply_filters( 'wpex_author_bio_avatar_size’, 75 ) );
// Only display if author has a description
if ( !$author_description ) return; ?>
<div class=”author-info boxed clr”>
<h4 class=”heading”><span><?php printf( __( 'Written by %s’, 'wpex’ ), $author ); ?></span></h4>
<div class=”author-info-inner clr”>
<?php if ( $author_avatar ) { ?>
” rel=”author” class=”author-avatar”>
<?php echo $author_avatar; ?>
<?php } ?>
<div class=”author-description”>
<p><?php echo $author_description; ?></p>
</div><!– .author-description –>
</div><!– .author-info-inner –>
</div><!– .author-info –>
<?php } // End function
} // End if
zmień sobie functions/post-meta.php
na http://pastebin.com/Py26iD73
dziękuje wielkie za zainteresowanie, skoro już jestem przy robieniu nagłówka postów to mam do Ciebie jeszcze pytanie. jak zmienić Comments na Liczba komentarzy i ew. zmienić kolor podświetlania? (w jakim pliku szukac?) i ew. jakie funkcje?
Ogarnąłem sam jak zmienić date i nazwę comments, jednak nie wiem jak zmienić kolor tak żeby mi się to wszystko nie sypało. Chodzi mi żeby nazwa „Liczba komentarzy” była w innym kolorze. W ktorym miejscu wstawić kod?
Pozdrawiam.