Zen Cart Logo
Forums / General Questions / H1 Still Appearing after delete?

H1 Still Appearing after delete?

Locked

Views: 1,060

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
24 Jun 2007, 11:30 PM
#1
dizz avatar

dizz

Zen Follower

Join Date:
Oct 2006
Posts:
170
Plugin Contributions:
0

H1 Still Appearing after delete?

Hi all,

I've removed the following line completely from my 'tpl_index_default.php' file:

<h1 id="indexDefaultHeading"></h1>

Yet the aforementioned is still appearing on my page!?!?! I have no idea how to get rid of this, and I'm not sure what I'm missing. You can view the live example at http://doyledesigninc.com/contographer/ to see what I mean...

25 Jun 2007, 1:07 AM
#2
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: H1 Still Appearing after delete?

Are you wanting to get rid of the welcome or change the appearance?

25 Jun 2007, 12:58 PM
#3
dizz avatar

dizz

Zen Follower

Join Date:
Oct 2006
Posts:
170
Plugin Contributions:
0

Re: H1 Still Appearing after delete?

I want to get rid of the empty <h1> that is sitting at the top of my page, creating an unnecessary bottom-border (as is set for all H1's). If you view the source on this page http://doyledesigninc.com/contographer, you will notice the issue on the home page. I've REMOVED the <h1></h1> completely from my 'tpl_index_default', but it is still appearing on the home page!!! There must be another place where this exists, and I would like to remove it completely fromt he page.

25 Jun 2007, 1:19 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: H1 Still Appearing after delete?

You have two choices.1. You could go with the Zen Cart flow by putting "Welcome" as HEADING_TITLE for category_depth = top and remove the version that you have hardcoded into the page
2. You could add #indexDefaultHeading {display:none} to your stylesheet

25 Jun 2007, 9:54 PM
#5
dizz avatar

dizz

Zen Follower

Join Date:
Oct 2006
Posts:
170
Plugin Contributions:
0

Re: H1 Still Appearing after delete?

Choice #2 is pure genius - thank you!

16 Oct 2007, 6:57 PM
#6
copels avatar

copels

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: H1 Still Appearing after delete?

Hi there

I've been reading up on search engine optimisation.

One suggestion is that Google and other look at teh value of the H1 variable in the home page.

When I do a view source mine is set to "indexDefaultHeading"

Can I change this to my keywords but not display it on the page?

Please feel free to have a look at https://www.giftsfromwales.com and offer any advice on how I can improve my rankings!

Thanks

Steve

17 Oct 2007, 2:24 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: H1 Still Appearing after delete?

To put an H1 on the page and then hide it, and hope that search engines don't catch on ... will bite you in the end ... because Google pays attention to that sort of thing, and penalizes you.

If you're not going to use it, don't.

Or, better yet, use it ... find a creative way to actually use it so that you can gain the benefits that using it brings you.