Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default tpl_header... I got the right area but...

    I literally haven't the first clue as to what on earth means what in this code and what i'd change to remove the zen cart thingy from my logo area!

    here's the link: www.bellamadeleine.com/boutique


    here's the php:

    <!--bof-branding display-->
    <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>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->


    I'm so close to figuring out how things work but really the code is a foreign language to me.


    Thanks for the help you guys!

  2. #2
    Join Date
    Jul 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    I think if you just delete the /includes/templates/template_default/images/logo.gif file you should be good.

  3. #3
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    I'm using Future Zen and there is no logo.gif. Would zen cart be using the files from template_default also???

  4. #4
    Join Date
    Jul 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    Quote Originally Posted by ladysaat
    I'm using Future Zen and there is no logo.gif. Would zen cart be using the files from template_default also???
    I think so, I'm just using the default one but it uses things from Classic too.

  5. #5
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    Well it removed the image per say but now there is a line of text. I don't understand though what's making that stuff show up in the html and what's generating it. Can I comment that section out in the php? Will that break the cart? (kind of dumb to ask since I'm trying it anyways and will soon find out)

    But I want to know what makes this stuff show up. And where I'd go to remove these pieces persay. KWIM?

  6. #6
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    Okay so commenting it out does NOT work.


    ARGH!!! This is frustrating. The text is a link. Where is it coming from and why is it in that position. What's frustrating is it's so easily accesible in the HTML of the page. But so what since that actually doesn't exist anywhere that I can change it and save those changes. The PHP is like soup or muddy gravy. I see bits that might look identifiable but when I poke at it, nothing doing.



    ETA: I can see where php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '" is generating a link. But HOW do I change it? Is it the link I want removed? I think so since the branding display div's are where the stuff is in the generated HTML.
    Last edited by ladysaat; 21 Jul 2006 at 10:19 PM.

  7. #7
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    HTML Code:
     <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>
    Remove the above from your template's tpl_header.php

  8. #8
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    I commented that out and it removes the entire logo and everything. It just goes blank up there.

  9. #9
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: tpl_header... I got the right area but...

    Okay so I had originally placed my graphic as the background in the #logoWrapper in my CSS. So I renamed it logo.gif. And erased it as a background in the #logoWrapper. So now it shows just fine. I made the Tagline text color white and it disappeared. My page background is now set to background-attachment: scroll; Hopefully that way eveything will stay clear. I know the way I did things was probably wrong and had nothing to do with code. But I just couldn't figure out how to write out what I wanted it to do.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: tpl_header... I got the right area but...

    I can see that you are working on this but earlier, you had the alternate text showing up due to Zen not finding the logo.gif.

    this is something that you might want to alter to something that represents your site. This is invoked if someone has no images turned on or for other reasons can not view your site with graphics and probably something you should be checking anyway.

    In your includes/languages/english/header.php file look for this code:
    Code:
    // added defines for header alt and text
      define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
      define('HEADER_SALES_TEXT', 'TagLine Here');
    and change most likely both lines to something that you would want a viewer to see if they cannot see your graphics. Of course save to your override folder.
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h got payment notice but without generating the order
    By sgc1998 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 17 Oct 2012, 09:56 PM
  2. Got the order and the paypal email, but no payment?
    By chata86 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 3 Jan 2011, 09:35 PM
  3. Trying to align text to the right on tpl_header.php
    By mohinder in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2007, 12:06 AM
  4. I got rid of the Header Sales Text, but did I do it right?
    By birdoasis in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Jun 2007, 11:31 AM

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