How To Insert Page Title into Header with Header Builder

Hey all!

Currently, the Header Builder does not include the possibility of designing a header in which the post/page title appears automatically, depending on which page the header is shown. A very common-sense feature, imho.

I’m wondering if anyone has figured out a way to do this. A string of code, maybe?

Perhaps this could be accomplished through a custom shortcode that pulls in the title?

Yeah, that’s what I resorted to :frowning:

Here’s my code in functions.php :

function show_page_title( ){
return get_the_title();
}
add_shortcode( ‘show_page_title’, ‘show_page_title’ );

I’ll +1 on this for this to have native functionality again. Really sucks that the titles have to go away if you have a custom header; seems like it should be a defacto feature.

4 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.