Forums / Templates, Stylesheets, Page Layout / tpl_header... I got the right area but...

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

Locked

Started by ladysaat on 21 Jul 2006, 8:36 PM · Views: 1,943

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
21 Jul 2006, 8:36 PM
#1
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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: https://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!

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

21 Jul 2006, 8:39 PM
#2
drbarnet avatar

drbarnet

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

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.

21 Jul 2006, 9:00 PM
#3
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

21 Jul 2006, 9:02 PM
#4
drbarnet avatar

drbarnet

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

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

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.

21 Jul 2006, 9:07 PM
#5
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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?

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

21 Jul 2006, 9:12 PM
#6
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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.

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

21 Jul 2006, 9:42 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,746
Plugin Contributions:
0

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

 <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

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Jul 2006, 2:00 AM
#8
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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.

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

22 Jul 2006, 2:27 AM
#9
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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. :(

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

22 Jul 2006, 2:30 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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:

// 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

22 Jul 2006, 2:39 AM
#11
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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

OH wow! Hey thanks! Now I can put something in the Tagline thingy that looks good. Plus change the other stuff. Much appreciated!

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

27 Jul 2006, 8:40 PM
#12
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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

You know... I knew that me doing it a roundabout way was going to bite me in the rear.

So now that I'm trying to use the built-in CSS stuff for different designs on different pages (:blush: thanks DrByte) I am totally confused as to how to have different logo images used by different headers on the different pages. I can't quite figure out where to change which image is called in the php. I looked at tpl_header.php and cannot see the part of code that specifies the image name.

Can anyone help me out with this?

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

27 Jul 2006, 9:14 PM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,746
Plugin Contributions:
0

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

Ladysaat-

Let's keep things in one thread instead of spread over 2 or 3 threads.

First, you have to walk before you can run ... may I suggest you get a good, simple template together before you try any per page changes. Once you completely understand building a template making more advanced changes will be easier. :wink2:

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 Jul 2006, 2:38 AM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

ladysaat,

I would have to agree with "Obaa-san", there are many ways to approach this, but one that you might find a bit more satisfying(or maybe not) is to first concentrate on getting the cart to function as you want, set your products up, add attributes and so forth. One to insure that you can get close in function to what your are thinking. Do this without worrying about the actual styling too much.

Once the cart is doing the things that you want you can then dive into making it pretty. Along the way your will gain insight and general structure information that will make this alot less of a task than at the beginning. JMO.

Zen-Venom Get Bitten

28 Jul 2006, 3:23 AM
#15
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

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

I can see why you say that.

I guess for some reason I was looking at it as the products/attributes etc. are actually functioning pieces of the machinery in zencart. Not much for me to do but plug in numbers. So I was saving that for last, as it's the last thing I'd need to do once I finished building the cart. I didn't really think I needed to know anything to do that, since the stuff is built in. The stuff I didn't know how to do was build it, style it and get the design coherent. I guess I was just looking at my to do list from the opposite direction LOL! I guess I could load the stuff really quick and then keep working on the rest. Might as well since it's up right?

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!