Ah, I see. Well, there isn’t currently a filter in place to allow you to override the title for the plugin output, although I suppose I could add one. I know I thought about it but couldn’t decide how it would be beneficial, but I could add it.
However, I’m not sure it would really help, as I am not sure it’s possible to make the plugin output the title twice, which I think is effectively what you’d be wanting to do–one as the overlay, and one for the actual post title below, correct?
What I think I’d look into instead, would be to use the code I posted above, and then add the “Newsroom” bit almost by hand, using the display_featured_image_genesis_before_title
hook. You can dynamically pull the blog page title, so even if it gets changed, you won’t get into trouble, and just copy the markup that the plugin uses. So you’d be looking at something like this (totally not tested anywhere at all, just thinking out loud):
add_action( 'display_featured_image_genesis_before_title', 'rgc_add_newsroom' );
function rgc_add_newsroom() {
if ( is_singular( 'post' ) ) {
return;
}
// set $title and $itemprop
printf( '<h1 class="entry-title featured-image-overlay" %s>%s</h1>', $itemprop, $title );
}
You can see how the plugin does this in the class-displayfeaturedimagegenesis-output.php
file, specifically the do_the_title
and do_backstretch_image_title
functions. HTH