Forums / Templates, Stylesheets, Page Layout / Make the tagline message in header an image?

Make the tagline message in header an image?

Locked

Views: 1,736

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
21 Oct 2008, 7:16 PM
#1
liquidspin avatar

liquidspin

New Zenner

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

Make the tagline message in header an image?

Hey all. I did a search and found someone had the same issue of trying to turn the tagline message in the header into an image.

The answer he found was:

define ('HEADER_SALES_TEXT', zen_image(DIR_WS_TEMPLATE_IMAGES . 'taglineimage.gif', 'Alternate Tagline text'));

This should make the tagline an image drawn from
/includes/templates/your_template/images/taglineimage.gif.

Ok my question is where and how do I add this?

I have the tpl.header.php opened but not sure where to place this into the php exactly.

Can anyone here help me out?

21 Oct 2008, 9:32 PM
#2
liquidspin avatar

liquidspin

New Zenner

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

Re: Make the tagline message in header an image?

Anyone? :cry:

22 Oct 2008, 1:28 AM
#4
liquidspin avatar

liquidspin

New Zenner

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

Re: Make the tagline message in header an image?

misty:

http://www.zen-cart.com/forum/showthread.php?t=42803
Previous thread above should help.

Hey Misty,

thanks but it still doesn't help me as I don't know where or how to place the code. Forgive me but I am new to PHP. Sorry to sound dumb.:blush:

22 Oct 2008, 4:52 AM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Make the tagline message in header an image?

includes/templates/your_template/common/tpl_header.php
BACKUP THAT FILE BEFORE ALTERING

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Oct 2008, 5:37 AM
#6
liquidspin avatar

liquidspin

New Zenner

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

Re: Make the tagline message in header an image?

misty:

includes/templates/your_template/common/tpl_header.php
BACKUP THAT FILE BEFORE ALTERING

I see you didn't quite read my first post fully and I'm not sure you get what I'm asking. I know which file to edit. I just don't know how exactly to place that code in.

I applied the code into the document where I wanted the image to appear. I replaced the code that calls up the "text message" however nothing appears. The path to the image is correct however I believe I'm not putting the code in the right place neither am I doing it properly since I don't have any knowledge with PHP.

I really do appreciate you helping me out but at least read my post in order to understand my problem. :wink:

22 Oct 2008, 5:39 AM
#7
liquidspin avatar

liquidspin

New Zenner

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

Re: Make the tagline message in header an image?

This is how I placed the code. Which I know is wrong but would love to know how to properly place this code inside the php file.

   <div id="taglineWrapper">
<?php
              if (HEADER_SALES_TEXT != '') {
?>

 <?php define('HEADER_SALES_TEXT', 'Your Tagline <img src="../images/world.png">'); ?>

<?php
22 Oct 2008, 5:53 AM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Make the tagline message in header an image?

I see you didn't quite read my first post fully and I'm not sure you get what I'm asking. I know which file to edit. I just don't know how exactly to place that code in.
Yes I did read your post and yes I did quote you an url
that gave an example as to integrate into tpl_header.php.
Did you visit that url and read ALL the posts.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Oct 2008, 12:24 PM
#9
liquidspin avatar

liquidspin

New Zenner

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

Re: Make the tagline message in header an image?

Misty:

Yes, I did read the post...and the post was short. It didn't give me an example of where to place it. Go back and look at the post you recommended.

In my first post I said I had already found a post with the code needed to change the text header into an image. However I just didn't know where and how to put it. I was hoping to get an example.

Is there someone here that can point me in the right direction please?

23 Oct 2008, 7:35 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Make the tagline message in header an image?

define statements generally go in language files, not template files. Search in Tools > Developers Toolkit for 'HEADER_SALES_TEXT' and you will see the file where it is defined. You want to edit that file, not add another definition in a different file.