Hi there,
Thanks for trying Bayleaf theme.
After selecting “Headless Full Width” template, there are two ways to achieve this.
1. Just enter h1 or h2 heading at the top of the page content (Repeat the title in page content and show as if it is title).
OR
2. Copy and paste following code in child theme’s functions.php file OR in code snippet plugin (and select Headless Full Width template for the page)
function bayleaf_child_page_entry_title() {
if ( is_front_page() ) {
return;
}
if ( is_singular( [ 'post', 'page' ] ) ) {
if ( is_page_template( 'page-templates/full-width.php' ) ) {
bayleaf_markup( 'page-entry-header-main-title', [ 'bayleaf_page_entry_header_items' ] );
}
}
}
add_action( 'bayleaf_on_top_of_site_content', 'bayleaf_child_page_entry_title' );
Note: Always backup your site before making PHP changes.
Please inform if you need more help on this OR if any other help is required with Bayleaf theme.
Thanks,
-
This reply was modified 4 years, 6 months ago by Veda.