Title: Custom date
Last modified: August 22, 2016

---

# Custom date

 *  Resolved [stephwitch](https://wordpress.org/support/users/stephwitch/)
 * (@stephwitch)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-date-2/)
 * Hi,
 * we love your plugin, but are trying to only show the full year “2015” on the 
   timeline. After having looked through your notes, we found this code but need
   some guidance as to where to place this code, which php file?
 * ——————————-
    function custom_te_date_format( $date_format ) { $date_format = “
   M d , Y”; // will print the date as Nov 19 , 2014 return $date_format; } add_filter(‘
   timeline_express_custom_date_format’ , ‘custom_te_date_format’ , 10 ); ——————————-
 * Any help would be much appreciated, since we are not php developers, but designers.
   
   Thanks, Stephanie
 * [https://wordpress.org/plugins/timeline-express/](https://wordpress.org/plugins/timeline-express/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-date-2/#post-5937293)
 * Hi Stephanie,
 * You’ll want to add that to your active theme (or better a child theme) function.
   php file.
 * You’ll find the file inside of your theme root (wp-content/themes/theme-name/).
 * Just add it as the last line towards the bottom of the file, save it and you 
   should be good to go.
 * If you’re looking to print just the Year, you’ll want to adjust the snippet to
   the following:
 *     ```
       function custom_te_date_format( $date_format ) {
         $date_format = "Y"; // will print the date as 2015
         return $date_format;
       }
       add_filter( 'timeline_express_custom_date_format' , 'custom_te_date_format' , 10 );
       ```
   
 * Please let me know if that helps out at all!
 * Thanks,
    Evan
 *  [mofusa](https://wordpress.org/support/users/mofusa/)
 * (@mofusa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/custom-date-2/#post-5937604)
 * Great plugin!
 * Is there a way to change the color of the date text that appears in the announcements?
   or to make it bold?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom date’ is closed to new replies.

 * ![](https://ps.w.org/timeline-express/assets/icon-256x256.png?rev=1007462)
 * [Timeline Express](https://wordpress.org/plugins/timeline-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timeline-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timeline-express/)
 * [Active Topics](https://wordpress.org/support/plugin/timeline-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeline-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeline-express/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [mofusa](https://wordpress.org/support/users/mofusa/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/custom-date-2/#post-5937604)
 * Status: resolved