Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove heading title and sales message entirely

remove heading title and sales message entirely

Locked

Views: 5,888

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 Aug 2007, 7:13 PM
#1
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

remove heading title and sales message entirely

Well I did a search and looked on the FAQ's etc and expected to find the answer easy-peasy but there was none. Could it be that I'm the only person who wants to remove the heading title and sales message entirely?

Most of all I would love to remove the heading title on the home page. The info in the support section tells you how to change this text, which I already have, but I just feel my design would be better if it were completely removed.

I don't really understand code and my usual approach is to just chop bits out to see what will happen, but I'm a bit scared to do that in this case.

I am currently looking at this bit

/*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
 define('HEADING_TITLE', 'Unique eco-friendly Jewellery and crafts');
} elseif ($category_depth == 'nested') {
 // This section deals with displaying a subcategory
 /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
 define('HEADING_TITLE', 'Unique eco-friendly Jewellery and crafts'); 
}
?>
```of the relevant index.php file and wondering what will happen if I just chop it out. I'm hoping someone on here will stop me doing something stupid  :shocking:

Any ideas?
16 Aug 2007, 7:41 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: remove heading title and sales message entirely

If you remove the Title your page will not have a title in your browser bar ... that is stupid. :) Don't do that. To remove any text from a define just leave the empty single quotes.

define('YOUR_CONSTANT','');

17 Aug 2007, 9:20 AM
#3
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: remove heading title and sales message entirely

Thank you for the reply Kim! I guess that means I am going to have to live with the title, but the information about how to remove text from a define is definitely going to come in useful somewhere else. :D

17 Aug 2007, 9:56 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: remove heading title and sales message entirely

I guess that means I am going to have to live with the title,
While you can leave this out - as Kim points out this is not smart as this is used by the search engines in ranking any page - no title no searching - no page rank - no traffic

9 Jun 2008, 5:00 PM
#5
semaxd avatar

semaxd

New Zenner

Join Date:
May 2008
Location:
Ventura Co.
Posts:
82
Plugin Contributions:
1

Re: remove heading title and sales message entirely

I just want to remove the text completly. What do i modify/put here ?

defineCOLOR="Red"[/COLOR];

I have a new header image already up. we dont need a sales message.
If i just remove the text from the header.php file above leaving the empty quotes, the text is gone however, it cuts off the bottom of my Bg_image so how do i remove the text and keep my logo intact.

thanks
jim

10 Jun 2008, 3:18 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: remove heading title and sales message entirely

semaxd,

Use the tutorials/FAQ's in the top nav bar on this page for answers to basic questions like this one

Searched this time for you for sales "message"

https://www.zen-cart.com/tutorials/index.php?article=127

10 Jun 2008, 5:39 PM
#7
semaxd avatar

semaxd

New Zenner

Join Date:
May 2008
Location:
Ventura Co.
Posts:
82
Plugin Contributions:
1

Re: remove heading title and sales message entirely

thanks Kobra for the help.
i had read that already i wasnt having problem with text removal just the effect it had on the BG image we got it fixed now thanks again!!

2 Jul 2008, 7:41 PM
#8
jippers avatar

jippers

New Zenner

Join Date:
Jul 2008
Posts:
11
Plugin Contributions:
0

Re: remove heading title and sales message entirely

I can't remove the sales maessage goes here, and I have checked and followed the faqs, yet it's still showing...

nothing wrong with my cookies..

30 Aug 2008, 9:25 PM
#9
liquidkrep avatar

liquidkrep

New Zenner

Join Date:
Aug 2008
Posts:
12
Plugin Contributions:
0

Re: remove heading title and sales message entirely

I'm having the same problem, I can't seem to get rid of it. I changed the heading sales text to blank and it still does not change it.

30 Aug 2008, 9:47 PM
#10
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: remove heading title and sales message entirely

... and you put your override file in the correct directory?

11 Sep 2008, 5:49 AM
#11
darrells avatar

darrells

New Zenner

Join Date:
Sep 2008
Location:
Evansville, Indiana
Posts:
1
Plugin Contributions:
0

Re: remove heading title and sales message entirely

If you want to completely remove "Heading Title." that you see by default on your store's front page open this file:

/includes/templates/template_default/templates/tpl_index_default.php

on line 17 is

<h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

However like others said it is good for SEO if your browser page title and this text between the <h1> tags match for relevancy of the keywords to your site.