Home › Forums › WoodMart support forum › Missing page title
Missing page title
- This topic has 10 replies, 2 voices, and was last updated 2 years, 1 month ago by
Luke Nielsen.
-
AuthorPosts
-
January 5, 2023 at 12:30 pm #433289
steen.r.nielsenParticipantHi 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.January 5, 2023 at 3:19 pm #433330
Luke NielsenKeymasterHello,
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
January 5, 2023 at 5:09 pm #433391
steen.r.nielsenParticipantRight title showing for blog posts. When you create a page like contact us. About us page. No title shows.
January 6, 2023 at 10:31 am #433507
Luke NielsenKeymasterHello,
On pages like Contact us, About us, you can manually define the title by using appropriate elements in your page builder.
Kind Regards
January 6, 2023 at 11:56 am #433534
steen.r.nielsenParticipantI don’t use a page builder. How has the title been removed? By filter or its just not in the template?
January 6, 2023 at 12:02 pm #433538
Luke NielsenKeymasterPlease 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
January 6, 2023 at 4:03 pm #433607
steen.r.nielsenParticipantNo 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 } ?>
January 6, 2023 at 5:02 pm #433642
steen.r.nielsenParticipantThis however does not work for woodmart pages that are not elementor so perhaps have to add page ID as well
January 6, 2023 at 6:17 pm #433652
Luke NielsenKeymasterHello,
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
January 7, 2023 at 2:31 am #433695
steen.r.nielsenParticipantIs there a way to check if a page is a woodmart page like cart?
January 9, 2023 at 11:38 am #433920
Luke NielsenKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register