Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to add text to heading??

How to add text to heading??

Locked

Views: 1,066

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Feb 2010, 7:01 PM
#1
deesan avatar

deesan

New Zenner

Join Date:
Jun 2008
Posts:
25
Plugin Contributions:
0

How to add text to heading??

Hello, I'm wanting to add a personal greeting to my indexDefaultHeading, I thought there was one there but it's not...what file would I modify to add something like "welcome to my store" in the purple box?

http://store.kre8tionz.com

Thanks in advance...

23 Feb 2010, 7:09 PM
#2
kobra avatar

kobra

Black Belt

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

Re: How to add text to heading??

Grab a copy of /includes/templates/template_default/templates/tpl_index_default.php

and edit BUT place the edited copy in /includes/templates/your_template/templates/tpl_index_default.php

23 Feb 2010, 7:39 PM
#3
deesan avatar

deesan

New Zenner

Join Date:
Jun 2008
Posts:
25
Plugin Contributions:
0

Re: How to add text to heading??

Thanks Kobra, gotta step out for a bit, but I'll try this as soon as I get back in....

24 Feb 2010, 2:44 AM
#4
deesan avatar

deesan

New Zenner

Join Date:
Jun 2008
Posts:
25
Plugin Contributions:
0

Re: How to add text to heading??

Oh good grief, I opened up the tpl_index_default.php file and haven't the slightest idea where to add my greeting......please help someone....

<?php /** * Page Template * * Main index page<br /> * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br /> * Centerboxes are called as necessary * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $ */ ?> <div class="centerColumn" id="indexDefault"> <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use uncomment this section <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php
24 Feb 2010, 11:25 AM
#5
kobra avatar

kobra

Black Belt

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

Re: How to add text to heading??

Not sure if it is the template you are using that has omitted the
normal "HEADING_TITLE" constant but look for this file in an override /includes/languages/english/classic/index.php folder or if you recall changing the normal text that displays or -
"Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution"

You can alter that in an overriden file