Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default 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:

    Code:
    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?

  2. #2
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make the tagline message in header an image?

    Anyone?

  3. #3
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Make the tagline message in header an image?

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

  4. #4
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make the tagline message in header an image?

    Quote Originally Posted by misty View Post
    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.

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Make the tagline message in header an image?

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

  6. #6
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make the tagline message in header an image?

    Quote Originally Posted by misty View Post
    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.

  7. #7
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default 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.

    Code:
       <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
    
     <?php define('HEADER_SALES_TEXT', 'Your Tagline <img src="../images/world.png">'); ?>
    
    <?php

  8. #8
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default 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.

  9. #9
    Join Date
    Oct 2008
    Posts
    7
    Plugin Contributions
    0

    Default 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?

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: questioning the claimed numbers of it

    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.

 

 

Similar Threads

  1. Tagline is sitting under the header - why?
    By GreyWolfWebDesign in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Feb 2010, 03:49 PM
  2. How to move the header search box to the tagline
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Mar 2009, 07:28 PM
  3. how do I make the whole header background image a link?
    By keelyerin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Aug 2008, 12:32 AM
  4. How can I make my background image extend above the header?
    By Pat Allosaurs in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Sep 2006, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg