Zen Cart Logo

Print Site Title

Locked

Views: 882

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
29 Apr 2008, 3:58 PM
#1
verd avatar

verd

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Print Site Title

Hey,

I have a really simple question that I'm sure I should be able to find the answer to but can't seem to through the forum search function or otherwise.

All I need to do is replace the logo with the site name. I know where in the template to change things, but I'm not sure how to call the site name. It can't be hard coded in the template files as the name will be changed down the road when this template is used on other installs.

Thank you very much in advance!

29 Apr 2008, 4:05 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: Print Site Title

Let's see a working link to the site on what you have done please

29 Apr 2008, 4:11 PM
#3
verd avatar

verd

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Print Site Title

haredo:

Let's see a working link to the site on what you have done please

Unfortunately, I'm working on a local install of MySQL/PHP - I won't be able to link to it, I would otherwise. All I really need to do is print the site title as it is in the database, I'm sure there must be a PHP function in there already.

Thanks for the response.

29 Apr 2008, 5:23 PM
#5
verd avatar

verd

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Print Site Title

That one only covers hard-coding the title in, as well, though through better means.

I did end up finding out how to do it - it's actually very simple, I really should have figured it out sooner.

Simply replace the logo with: <?php echo(STORE_NAME) ?>
If you want it to link to your home page, make it: <?php echo '<a href=\"' . HTTP_SERVER . DIR_WS_CATALOG . '\">' . STORE_NAME . '</a>'; ?>

... and that's it.

Thanks for your help!

29 Apr 2008, 5:27 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: Print Site Title

V,
I knew you would figure her out, just a little guidance.