Heading 1 Missing from default xstore template pages

1 reply2 participantsUpdated by Luca Rossi

  • Avatar: Gordie
    Gordie
    Participant

    For pages that don’t have an elementor template assigned, how can I get the ‘default’ wordpress/xstore template to pull through the heading/title to it sits under the breadcrumb but above the content.

    I realise the title is displayed in the breadcrumb but I want it in the normal location.

    I don’t want to have to override every page with a custom Elementor template.

    Thanks 🙂

    Please, contact administrator
    for this information.

    1 Answer

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @Gordie,

    Please add the following code under functions.php file locates in your child theme:

    
    add_action('etheme_page_heading', 'n2t_etheme_page_heading', 999);
    function n2t_etheme_page_heading()
    {
    	if (basename(get_page_template()) === 'page.php') {
            echo '<h1 class="custom-heading">'.get_the_title().'</h1>';
    	}
    }
    

    Hope it helps!

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register