This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Layout Builder – how to show current page's Title

Jason Bobich


No I apologize but there is no feature for this. I’ve got a feature for this added for the next update though for the Header element. Although the the custom layouts weren’t really designed with the intention of them being used for multiple pages, However, in the next update, you’ll be able to edit each custom layout directly from the Edit Page screen (additionally from editing them from the Layout Builder interface). So this will all make a little more sense conceptually.

Right now, you couldn’t use a shortcode because the header element does not render shortcodes. The only real logical way to do it I think would just be to re-do the themeblvd_headline function found in /framework/frontend/functions/builder.php. You’d copy this to your Child theme and paste it in your functions.php before the framework is included.

function themeblvd_headline( $options ) {
	global $post;
	$output = '<'.$options['tag'].' class="text-'.$options['align'].'">';
	$output .= get_the_title( $post->ID ); // Title of current page
	$output .= '';
	if( $options['tagline'] ) {
		$output .= '

'; $output .= stripslashes( $options['tagline'] ); $output .= '

'; } return $output; }