Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Adding image to header.php, replacing sales message

    My code changes to /languages/english/header.php were done according to the post you referenced. (Except, I do not have any text - just the image.) This part works as expected.
    Should be in file
    /languages/english/NAMEOFTEMPLATE/header.php
    However, that stylesheet does not have a "taglineWrapper" it only has "tagline". Replacing your code in this part of the stylesheet, did not raise the image into the header section
    Try adding "taglineWrapper" code in addition to existing "tagline" code...
    Code for header should be in
    /includes/templates/NAMEOFTEMPLATE/common/tpl_header.php
    but have never personally used ZJ Black template

  2. #12
    Join Date
    Sep 2008
    Location
    California
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding image to header.php, replacing sales message

    I am still unable to get my image located within the header section...

    Per these last instructions, I went to /includes/languages/ZJ_Black/english.php However, there are no references to the Tagline or SALES_HEADER_TEXT within the file.

    The code suggested for /includes/templates/ZJ_Black/common/tpl_header.php appears to be CSS code, not PHP.

    I think these are the pertinent sections of code comparing the tpl_header.php files from ZJ_Black (which does not work) and ZJ_BLack2 (which does work)...

    ZJ Black
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>


    ZJ Black2

    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>


    Since they seem to be identical, I assume I am 'barking up the wrong tree'. Can anyone point me to the correct 'tree'?
    Thanks.

  3. #13
    Join Date
    Sep 2008
    Location
    California
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding image to header.php, replacing sales message

    Additional Clues

    When I change my Tagline to text only, it goes back into the proper location. If use text + image (per the referred thread), it no longer stays in the header, but drops down...

    WORKS: define('HEADER_SALES_TEXT', 'Tagline! ');
    DOESN'T: define('HEADER_SALES_TEXT', 'Tagline! <img src="http://www.carded.biz/shop//images/tag.gif">');

    So... Is it a problem with the SIZE of the image?
    I wouldn't think so, the header-bg.jpg is 106px high, and the image I want to use is 101px high... Reducing it to 90px high gives the same result...

    I hope someone is monitoring this thread that can give me a hand...
    Last edited by waytoolate; 26 Feb 2010 at 02:53 AM. Reason: Additional Information...

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

    Default Re: Adding image to header.php, replacing sales message

    waytoolate...

    Have completed adding image, zj_black template, to replace header sales message/tagline...

    Altered only one file....

    /includes/languages/english/zj_black/header.php

    Template, with your image/s added, at
    DEMO site...

    http://dezinashop.co.uk/index.php?site=zj_black

  5. #15
    Join Date
    Sep 2008
    Location
    California
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding image to header.php, replacing sales message

    Misty -
    Thanks for the reply and seeting up the demo.
    It is exaclty what I am trying to accomplish....

    However (Aarghhh...) This is what gets frustrating...
    Quote Originally Posted by misty View Post
    Altered only one file....

    /includes/languages/english/zj_black/header.php
    I don't this file in this location!
    I have: /includes/languages/zj_black/english.php
    but it does not "define HEADER_SALES_TEXT"

    I have /includes/languages/english/header.php
    It does "define HEADER_SALES_TEXT" and it has the code:

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Art Cards from the Heart :: Original work from Ann Juttner');
    define('HEADER_SALES_TEXT', '<img src="http://www.carded.biz/shop/images/tag.gif">');
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    I DON'T have a zj_black folder under /includes/languages/english.

    I also have /includes/templates/zj_black/common/tpl_header/php and I have already copied that code in my previous post...

    I don't understand why you would have a different file structure than mine. I downloaded the ZJ templates to my local computer and unzipped their files - I got the same structure as I have on my server.

    Should I just create the folder and copy the header file from ../english/header.php to ../../english/zj_black/header.php?
    (a few days ago, I would had just done it to see what happpens, but now I am getting 'gun shy'... )

    Sorry, to keep making these lengthy posts, but I am trying to clarify things...

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

    Default Re: Adding image to header.php, replacing sales message

    /includes/languages/english/zj_black/header.php

    Is the only file you should be concerned with regarding this
    issue...
    Should I just create the folder and copy the header file
    Yes...
    Make sure your image, tag.gif, is in folder stated

  7. #17
    Join Date
    Sep 2008
    Location
    California
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding image to header.php, replacing sales message

    Peculiarly peculiar...

    I created the sub-folder and copied:
    /includes/languages/english/header.php to
    /includes/languages/english/zj_black/header.php

    Refreshing my web-site pages has moved the image from below the header to halfway up to its proper location...

    As can be seen at :http://www.carded.biz/shop

    If I wasn't learning other usefule bits and pieces along the way, this would alternate between the absurd and the amusing...

    Where do I go next?

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

    Default Re: Adding image to header.php, replacing sales message

    Code:
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Art Cards from the Heart :: Original work from Ann Juttner');
    define('HEADER_SALES_TEXT', '<img src="http://www.carded.biz/shop/images/tag.gif">');
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    Those two settings marked in red are incorrect..size of
    your logo is now... width 469px height 92px...
    Suggest you alter code to reflect this, as I did when
    creating demo...

  9. #19
    Join Date
    Sep 2008
    Location
    California
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding image to header.php, replacing sales message

    Stranger and stranger...
    I went to another web-site that is nearly complete that is also using the ZJ_BLack template. It does not need another image in the header - it just has text for HEADER_SALES_TEXT.

    So before changing anything else, I created .../english/zj_black/header.php and altered the php file to load an image instead of the text. I created an image called tag.gif to load in its place...

    It now works EXACTLY as you said it would!

    ...Now... I have to backtrack through my work and see where I have made my mistake!
    (Any suggestions would be very much appreciated!)
    Thanks!

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

    Default Re: Adding image to header.php, replacing sales message

    At carded biz shop...switch back to classic template, then uninstall zc_black template by removing ALL files and folders,
    then reinstall zc_black, and proceed as you have outlined in
    other site, where success has been achieved.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Additional Image Replacing Existing Image Instead of Adding as a Second Image
    By Allaction in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 30 Apr 2013, 11:56 PM
  2. Replacing Header Image
    By kahu in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Aug 2008, 11:50 PM
  3. Header.php and sales message
    By ZanyZack in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Jul 2008, 03:55 PM
  4. how to change the text on header?(Sales Message Goes Here)
    By charley518 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2006, 10:08 AM
  5. turn off sales message and change alt in header
    By usernamenone in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Nov 2006, 11:03 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