Hi there,
You can try adding the following code to the functions.php file of your child theme:
function my_custom_edit_post_title($title){
global $pagenow;
if($pagenow == 'post.php' && isset($_GET['action']) && $_GET['action'] == 'edit'){
global $post;
$title = str_replace ( get_bloginfo('name'), $post->post_title, $title);
}
return $title;
}
add_filter( 'admin_title', 'my_custom_edit_post_title', 10, 2 );
Hope this helps.
Hi Deni,
As you suggested, I just placed your code at the end of the child theme functions.php as you suggested and it works great.
I really appreciate it. I expect this will actually be better than what I was trying to do via supplanting the site_name with the post_title. In part, I think this tab title change will not get overlaid on WordPress updates.
In any case, I am doing multiple edits on numerous pages in one browser window at a time on the GiantLeap.com news section and this will allow me to see enough of the post name to keep them straight. I never had this requirement before, but I run into it almost daily now and this will really help me.
Thanks again,
DAC