Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

How to remove H1 from site title on homepage

         

Gemini23

6:18 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Anyone help?

A MANTRA theme and the Site Title is H1 on the home page.... which is okay in itself but the Page Title that is designated as the Home page has its own H1.... so therefore 2 sets of H1s for the homepage which obviously isn't good...

so.. how to remove or change the site-title from being H1 on the home page?

On ALL other inner pages the site title is NOT H1.... the page Titles are as they should be - the H1s for those pages....

not2easy

6:30 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Is the home page a single page or post - or is it clips from other pages/posts? If the home page is a single, you can click to edit and in the right sidebar, under where you click to publish you should see where to disable that feature. I say "should" because not all themes are the same.

Gemini23

6:38 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it is a single page....
"disable that feature" hm... disable what feature? I cannot see anything there.... that seems relevant...

tangor

9:37 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you can get down and dirty and code the page by hand, that also works. However, any update or rewrite by the cms can undo that.

Reality is h1 has been deprecated over the years because of early abuse and continued abuse by either SEO magicians, lazy coders/layout artists, or general stupidity. I wouldn't be overly concerned on this. G and B both tend to ignore h1 as a value/rank indicator.

not2easy

10:30 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you view the list of pages and select the page that is your Home page and click to edit that page, is there not a list of boxes with options under the box where you can click to "Publish" or "Update" the page? There should be a way for you to set the Parent and Order under "Page Attributes" and below that box all of my WP sites show a box labled "Disable Elements" where I can click to disable the Headline / Post Title. The post title still exists but it no longer has the default H1 tags. Since these are not all using the same theme it looked like it was a regular WP feature. Maybe not?

Gemini23

10:38 pm on Feb 11, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks not2easy - I use wordpress everyday and I don't have that option... not on the two themes I have used... I don't have that "Disable Elements

not2easy

6:20 am on Feb 12, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Another way to disable the <h1> <title is to edit the page template. Since only the home page has that problem, it is probably a different template in your theme than "page.php" The template that was used may have been a single column page (?) or one specifically made for a home page. You can open that in a text editor if you are certain what template to edit. (always keep a backup copy of the original) and replace the code near the head where it adds "the_title". Usually this looks like:
<h1 class="title"><?php the_title(); ?></h1>

It can be commented to not show by editing that to be:
<h1 class="title"><?php //the_title(); ?></h1>


Note that it is possible that the edited template may be replaced/updated with major updates to either WP or your theme. If you're using a child theme it is easier to keep your edits, but check after updates to be sure to know if/when that original page is replaced so you can re-edit if needed.

Other than edits, you can maybe ask the theme developer for a way to remove the <h1> title heading.

Gemini23

11:24 am on Feb 12, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Many Thanks for the input - I have looked for the title h1 but cannot find it and have emailed the theme makers - with no reply at the moment....

tangor

2:39 am on Feb 13, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have a commonsense question to ask: Have you seen any negative effects over this coding problem?

Exactly where is the unwanted h1 appearing? If in <title> then I'd ignore it and not worry.... formatting in <title> (within <head>) is generally ignored because of browser defaults and probably has no impact on serps.

Or if that has changed then I'd be happy to see where that changed.

Gemini23

6:49 pm on Feb 13, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



For information:

Bing webmaster guidelines... "Only one <H1> tag per page"....

ergophobe

9:42 pm on Feb 13, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have looked for the title h1 but cannot find it


grep is your friend. If you're on Windows and don't have grep built in, then GrepWin and dnGrep (free) or Wingrep ($$) or Powergrep ($$$ but amazing) are your friends.

In a pinch, Notepad++ can search all files in a directory (I think), so you could do it that way.

Search for the H1, but if there are too many of those, find a unique class or id that is only on the home page and grep for that.

not2easy

10:04 pm on Feb 13, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If the developer can't help, I would check the source code to see if there are any clues to which template is used on that home page. Often there are unique classes if it does not use the default page or post template.

If you see the tag in its default format: <h1 class="title"> you could edit the css file and look for the h1.title and set it to "display: none;" It would not affect the H1 alone or in other classes. If you do this you should first check that the "second" <h1 tag that you want to keep does not use the same .title class. Since the Title is only in <H1 in that home page it is likely not the same class, but it should be verified before any edit.

It should also be clear if you click to edit that home page in the editor whether a unique template is being used for the home page and to disable that function in the template. When you start a new page or post there should be a way to select the template you want to use and it should show the name of the selected template when in the edit screen.

Gemini23

10:08 pm on Feb 13, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have looked and looked... I can see where to edit entry-title but not site-title.... also looked on home page templates etc....

Gemini23

7:21 pm on Feb 14, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



SOLVED!
Having contacted the theme makers - who said they would look into it for the next update - as they have a 'presentation page' which they offer to be used as the home page.... or could help with coding to resolve why two sets of H1s...

The 'fix' was in not using a single column template for the hompage but the 'default' template... one pair of H1s and one pair of H2s..