Home Forums WoodMart support forum Missing page title

Missing page title

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #433289

    steen.r.nielsen
    Participant

    Hi on the blog if you disable the top banner page title the normal h1 title shows. However, if you disable on a page no title at all shows. example blog picture attached.

    Attachments:
    You must be logged in to view attached files.
    #433330

    Luke Nielsen
    Keymaster

    Hello,

    In your screenshot, the title of the blog is shown, so please describe in more detail your issue for a better understanding. I will do my best to help you.

    Kind Regards

    #433391

    steen.r.nielsen
    Participant

    Right title showing for blog posts. When you create a page like contact us. About us page. No title shows.

    #433507

    Luke Nielsen
    Keymaster

    Hello,

    On pages like Contact us, About us, you can manually define the title by using appropriate elements in your page builder.

    https://prnt.sc/liXF0VQ6xNof

    Kind Regards

    #433534

    steen.r.nielsen
    Participant

    I don’t use a page builder. How has the title been removed? By filter or its just not in the template?

    #433538

    Luke Nielsen
    Keymaster

    Please send me access to the admin dashboard so I can check the issue on your side. Also, attach the link to the page where the title disappeared after disabling the page title.

    Kind Regards

    #433607

    steen.r.nielsen
    Participant

    No cant have access. I put this code for now on the page.php if you have a more elegant solution please.

    <?php	if ((get_post_type() === 'page') && ( ! Elementor\Plugin::instance()->db->is_built_with_elementor( get_the_ID()) )) {
       // PAGE H1 title on non elementor pages
       ?>
    					<h1 class="wd-entities-title title post-title"><?php single_post_title(); ?></h1>							
    <?php	
    } ?>
    #433642

    steen.r.nielsen
    Participant

    This however does not work for woodmart pages that are not elementor so perhaps have to add page ID as well

    #433652

    Luke Nielsen
    Keymaster

    Hello,

    In general, the default pages don’t have such functionality that defines the main title like on the Blog (https://prnt.sc/NrETSEm-OOgj), therefore you should add it manually.

    If the above code works for you, then it is a good solution.

    If there’s anything else we can do, please get in touch.

    Kind Regards

    #433695

    steen.r.nielsen
    Participant

    Is there a way to check if a page is a woodmart page like cart?

    #433920

    Luke Nielsen
    Keymaster

    Hello,

    In general, the cart page comes from WooCommerce, but you can customize it via Dashboard -> Layouts.

    Let me know if you have any questions, I’d be happy to answer them.

    Kind Regards

Viewing 11 posts - 1 through 11 (of 11 total)