Fancy Date Beside Post Title
-
I have been trying for days to add a fancy date calendar like icon beside my post title with no luck. I hope someone can possibly help me. I am using the Genesis Framework with the Julianna theme…I have found several codes to enter and have used them but nothing works. Am I adding it to the wrong place. One of the codes I have used is below:
add_filter( 'genesis_post_date_shortcode', 'child_post_date_shortcode', 10, 2 ); /** * Customize Post Date format and add extra markup for CSS targeting. * * Includes the year as well. * * @author Gary Jones * @link http://code.garyjones.co.uk/style-post-info/ * * @param string $output Current HTML markup. * @param array $atts Attributes. * * @return string HTML markup. */ function child_post_date_shortcode( $output, $atts ) { return sprintf( '<span class="date time published" title="%4$s">%1$s<span class="day">%2$s</span> <span class="month">%3$s</span> <span class="month">%5$s</span></span>', $atts['label'], get_the_time( 'j' ), get_the_time( 'M' ), get_the_time( 'Y-m-d\TH:i:sO' ), get_the_time( 'Y' ) );Can any PLEASE PLEASE help me with this???
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fancy Date Beside Post Title’ is closed to new replies.