Remove page and blog title h1

Hi,

Is there a way to completely remove the H1 from blog title and page title?

I’ve ticked the option “disable page title” and added .h-landmark { display: none !important} - but this merely hides the h1 elements.

I want to removed them all together as I get several h1 headers now on every page and blogposts.

Could you please help me?

Summary

https://www.livecasinodeal.com/

Hi There,

Thanks for writing in! I see that you’re using Renew stack. First make sure that you have an active child theme setup correctly (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

Then copy the file _landmark-header.php which is located under (x/framework/legacy/cranium/headers/views/renew/) into your child theme’s respective location (x-child/framework/legacy/cranium/headers/views/renew/_landmark-header.php).

Then locate the following line which displayed your page titles (line no 41).

<?php elseif ( is_page() ) : ?>

            <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>

You can basically remove the line or comment it out.

<h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>

Hope that helps.
Thanks!

Thanks, I’ve made the change but still getting duplicate h1 when I check my first page. Could you check for me if to see what is wrong if I pass on my credentials?

Hello There,

Regretfully the password for the ftp is not working for us. I have checked the site and the remaining h1 is coming from the _brand.php file. To resolve this, please check out this link: https://theme.co/apex/forum/t/editing-duplicate-hidden-h1-tagw/27019/4, https://theme.co/apex/forum/t/more-than-one-h1-tag-remove-h1-added-by-x-theme-to-each-page/10608/8, https://theme.co/apex/forum/t/h1-change-heading/11126/4

Hope this helps.

Hi RueNel,

Thanks for your reply,

Checked the other topics. My child theme do not have the same folders as the parent theme, is it safe to just create new folders so it has the same path or do I need to reinstall the child theme to a later version?

Hello there,

Yes, you need to create the same folders:

/livecasinodeal.com/public_html/wp-content/themes/x/framework/views/global
/livecasinodeal.com/public_html/wp-content/themes/x-child/framework/views/global/

I’ve already removed that line of code in your child theme’s _brand.php.

Let us know if you have any question.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.