Heading 1 Missing from default xstore template pages

This topic has 2 replies, 2 voices, and was last updated 1 weeks, 3 days ago ago by Luca Rossi

  • Avatar: Gordie
    Gordie
    Participant
    June 24, 2025 at 06:10

    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 🙂

    Content is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    June 25, 2025 at 09:29

    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!

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.