X

Change default “Enter title here” text within post title input field

Adding this snippet to the functions.php of your wordpress theme will let you change the default "Enter title here" text that is displayed within post title input field.


function title_text_input( $title ){
     return $title = 'Enter new title';
}
add_filter( 'enter_title_here', 'title_text_input' );

Comments  Leave a Reply

  1. Do you know how to change text “Select a category” on widget product categories in woocommerce?
    I want to translate in Croatian.
    Tnx

  2. 3 WordPress Title Box Hacks - WPMU.org August 9, 2012 at 12:00 pm

    […] Source: WPSnipp.com After: New Post Title text […]

  3. WordPress dashboard hacks for developers and freelancers | CatsWhoCode.com June 25, 2012 at 10:35 am
  4. WordPress dashboard hacks for developers and freelancers | CatsWhoCode.com June 25, 2012 at 10:35 am
  5. Thanks for the informative post with coding.

    1. No problem anytime,

  6. Great tip! How would you change the text for a specific custom post type only?

    1. function custom_title_text( $title ){$screen = get_current_screen();if ( ‘customposttype’ == $screen->post_type ) {$title = ‘My Custom Post Type Title Text’;}return $title;}add_filter( ‘enter_title_here’, ‘custom_title_text’ );

      1. That’s exactly what I needed, thanks Matt!

    2. function custom_title_text( $title ){$screen = get_current_screen();if ( ‘customposttype’ == $screen->post_type ) {$title = ‘My Custom Post Type Title Text’;}return $title;}add_filter( ‘enter_title_here’, ‘custom_title_text’ );

    3. David what Matt posted should work fine,

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!