• Resolved Ebrark

    (@ebrark)


    Hello,

    Do you have Full Width template which does not hide the Heading of the page ?

    Currently the templates I can see in the theme are : Default Template, Headless Full Width and Header-Blank-Footer.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Veda

    (@vedathemes)

    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.
    Thread Starter Ebrark

    (@ebrark)

    Great, thanks.

    Theme Author Veda

    (@vedathemes)

    Welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Headless Full Width’ is closed to new replies.