Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove header title from main page

Remove header title from main page

Locked

Views: 7,022

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
6 Jul 2006, 7:30 PM
#1
onisama avatar

onisama

New Zenner

Join Date:
Dec 2005
Posts:
60
Plugin Contributions:
0

Remove header title from main page

I would like to have the word home (below the logo, above the welcome message) removed from the top of the index page without removing the button form the header.

I know how to reomve the button, which also removes the header title, but I want to keep the button.

6 Jul 2006, 8:52 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Remove header title from main page

Sorry but I did not get your question
Which button?
San

7 Jul 2006, 3:16 AM
#3
onisama avatar

onisama

New Zenner

Join Date:
Dec 2005
Posts:
60
Plugin Contributions:
0

Re: Remove header title from main page

There are 2 buttons on the top of the index page header. Home and Log In.

I would like to remove the the either header title or the page title, not sure which it is a part of (I'm not talking about the title that shows up in the browser title bar). It says Home when you are the main page. The text is below the logo.gif and above the welcome message

7 Jul 2006, 3:50 AM
#4
onisama avatar

onisama

New Zenner

Join Date:
Dec 2005
Posts:
60
Plugin Contributions:
0

Re: Remove header title from main page

I think its ccalled the navBreadCrumb.

7 Jul 2006, 5:02 AM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Remove header title from main page

Try this:

How do I remove the Home in the middle column next to the Categories box?

This is called the breadcrumb (think Hansel and Gretel) showing where you are and how to get back to previous locations. You can either turn it off completely or you can turn it off only on the main page.

You can turn it off in admin -> configuration -> layout settings -> Define Breadcrumb Status and set to 0.

To turn it off on the main page only in includes -> templates -> YOUR_TEMPLATE -> templates -> common -> tpl_main_page.php find the following lines of code

<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->

and change to:

<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?>    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
7 Jul 2006, 4:24 PM
#6
onisama avatar

onisama

New Zenner

Join Date:
Dec 2005
Posts:
60
Plugin Contributions:
0

Re: Remove header title from main page

That worked, Thanks.

8 Jul 2006, 8:54 PM
#7
cpierce avatar

cpierce

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Remove header title from main page

I have a question about the Sales Message Goes Here section and the Powered by Zencart The Art of E-Commerce on the top left and also the Congratulations! You Have Sucessfully Installed Your Zen Car E-Commerce Solution sections. How do I change these??? I want to put my logo, sales message and don't want the world to see that I successfully downloaded the Zencart. I can't find where to change this anywhere??

8 Jul 2006, 9:12 PM
#8
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Remove header title from main page

The bast place to look for this would be the FAQ.
there is a link above.

for sales message goes here
includes/languages/english/your_template/header.php
for the other
includes/languages/english/your_template/index.php

9 Jul 2006, 6:31 PM
#9
cpierce avatar

cpierce

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Remove header title from main page

Could you explain that in a little more detail for me? I didn't see a link for the FAQ section and the second part of your message cofused me. I am very, very new at this. Thank you for your help. Cristina

9 Jul 2006, 7:05 PM
#10
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Remove header title from main page

How do I add and position a new logo?

Using an image editor create your new logo and save it to includes -> templates -> YOUR_TEMPLATE -> images -> logo.gif and upload it to your server.
By default the logo is Left aligned. Changing the alignment involves making a modification to your stylesheet.css. Open the stylesheet.css and find the following:

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
}

and change it to

#logo {float: left;}/* Make your changes here (i.e. to center the logo change float: left; to text-align: center; or you can align it to the right by changing float: left; to float: right;) */

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
}


How do I change the "sales message goes here"/"TagLine Here" text?

In order to add your own "sales text", changes will have to be made in includes -> languages -> English (or YOUR LANGUAGE) -> header.php.
Open the file in a text editor and find the following line of code:

define('HEADER_SALES_TEXT', 'TagLine Here');

Make your changes to the text highlighted in red. Save the file and copy it to the includes -> languages -> English (or YOUR LANGUAGE) -> YOUR_TEMPLATE folder and upload it to your server.


How do I change Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution?

look in includes -> languages -> english -> index.php and find this:

// This section deals with the "home" page at the top level with no options/products selected
/Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} 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', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
}

change the portions in red to whatever you want.