Enable post excerpts in wordpress theme twentythirteen

In TwentyThirteen, there are many files, their names’re started with content: content.php content-none.php content-aside.php content-audio.php content-chat.php content-gallery.php content-image.php content-link.php content-quote.php content-status.php content-video.php Among them, except the first two, all the others are for different post types, and you can understand their usages from their names. The 2nd one, content-none.php is used to display apology texts, … Read more

Custom entry_date function

You should be using get_the_date, rather than the_time (which will just echo the value). And always quote string arguments. $date = sprintf( ‘<span class=”date”><a href=”https://wordpress.stackexchange.com/questions/132268/%s” title=”https://wordpress.stackexchange.com/questions/132268/%s” rel=”bookmark”><time class=”entry-date” datetime=”https://wordpress.stackexchange.com/questions/132268/%s”><span class=”date–day”>%s</span><span class=”date–month”>%s</span><span class=”date–year”>%s</span></time></a></span>’, esc_url( get_permalink() ), esc_attr( sprintf( __( ‘Permalink to %s’, ‘lyod’ ), the_title_attribute( ‘echo=0’ ) ) ), esc_attr( get_the_date( ‘c’ ) ), esc_attr( get_the_date( … Read more

Add logo in navigation bar before menu items in twenty thirteen?

Tested on a Twenty Thirteen & Twenty Twelve child theme. Try this from your child themes functions.php file. You can add the image using various methods. add_filter( ‘wp_nav_menu_items’, ‘wpsites_add_logo_nav_menu’, 10, 2 ); function wpsites_add_logo_nav_menu( $menu, stdClass $args ){ if ( ‘primary’ != $args->theme_location ) return $menu; $menu .= ‘<nav class=”nav-image”><img src=”‘ . get_stylesheet_directory_uri() . ‘/images/header.png” … Read more