Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / removing define('HEADER_SALES_TEXT','');

removing define('HEADER_SALES_TEXT','');

Locked

Views: 2,456

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
23 Apr 2008, 9:08 PM
#1
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

removing define('HEADER_SALES_TEXT','');

Hello,
My problem is i want to remove "define('HEADER_SALES_TEXT','');", so I just have my logo as the header. If I use what is above I get a space under my logo and If I remove it for come reason "HEADER_SALES_TEXT" is displayed under the logo. I found out how to change it just not remove it. Any help greatly appreciated:smile:

Thanks,
Keith

24 Apr 2008, 12:30 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

You have a URL for this site? If you post it, people can see what the actual css is, and be more willing to help you.

You should see something like:

#headerSalesText {
display: inline;
}

Would be replaced with:

#headerSalesText {
display: none;
}

(headerSalesText could be "tagline" or any number of things)

or something like that, depending on which template you're using, and who designed it, as to what the actual code will be. But it would be so much easier if we could see your site. Then we could pinpoint it in about 2 seconds instead of having to guess.

Hope this helps.
If not, post your URL.

24 Apr 2008, 3:55 AM
#3
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

Hi,
Thanks for your quick response. I found #tagline in stylesheet.css and made it #tagline {
display: none;
}
,but the problem is still there.
https://www.keithgabbard.com is the URL what I'm using at the moment.
Do you see the space under the logo? I just started with this program today, so I apologize if I'm not clear. I've read a great deal, but still feel unnatural with which files to modify where.

Thanks for your help!,
Keith

24 Apr 2008, 4:08 AM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

Did you finally get it? I'm not seeing define('HEADER_SALES_TEXT',''); anywhere on your site.

24 Apr 2008, 4:38 AM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

The white space under your header is caused by this section of code in your css:

#logo {
     text-align: center;
    }

Change to:

#logo {
    float: left;
    }

That should do the trick.

I also saw your tagline in your css. See all that other stuff in there? Right now it looks like:

#tagline {
display: none;
    color:#000000;
    font-size: 2em;
    text-align : center;
    vertical-align: middle;
    }

It needs to look like:

#tagline {
   display: none;
}

Anything that's unnecessary just slows your sites download time. The browser has to read everything........even if it's not displayed.

Hope this helps.

24 Apr 2008, 4:45 AM
#6
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

Maybe I'm confused about what that space is. When I centered my logo the small white space you see under it appeared. Even though there is no text displayed, it is still taking up space somehow. That space is where HEADER_SALES_TEXT shows up if I delete define('HEADER_SALES_TEXT',''); in stylesheet.css. All I want to do is get rid of that white line.

#tagline {
display: none;
}

This doesn't seem to make it (the white line) disappear. Again, I apologize if I seem confusing here. I just started with the cart today. Obviously I'm a long way from creating what I could in Dreamweaver visually. I really appreciate the help. :wink:

Thanks,
Keith

24 Apr 2008, 4:46 AM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

Oops. Double post. Sorry Admins. Didn't mean to. I'm on a satellite connection, and a storm is in the area is knocking my connection in and out. Just refreshed the page and there it was........a double post. At least I caught it before you did. :)

24 Apr 2008, 4:51 AM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

You have a little white bar right below your header & Nav Cat Tabs

includes/ templates/ your_template/ css/ stylesheet.css

Look for:

  1. #navCatTabs
  2. You might half to seperate out this declaration if associated (linked with others..
  3. This is the remedity:
  4. #navCatTabs {margin-top: -1.2em;}
  5. the highlighted red text above is the little white space fix.
24 Apr 2008, 4:53 AM
#9
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

wildkeith:

Maybe I'm confused about what that space is. When I centered my logo the small white space you see under it appeared. Even though there is no text displayed, it is still taking up space somehow. That space is where HEADER_SALES_TEXT shows up if I delete define('HEADER_SALES_TEXT',''); in stylesheet.css. All I want to do is get rid of that white line.

#tagline {
display: none;
}

This doesn't seem to make it (the white line) disappear. Again, I apologize if I seem confusing here. I just started with the cart today. Obviously I'm a long way from creating what I could in Dreamweaver visually. I really appreciate the help. :wink:

Thanks,
Keith

No problem. Look at the first section of my last post (not the Double Post note) that tells you what caused the white space.

24 Apr 2008, 4:53 AM
#10
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

Hello,
Thanks for your help. I really appreciate it. I have a question though. If I change:

#logo {
text-align: center;
}

to:

#logo {
float: left;
}

Wouldn't my logo be aligned to the left of the page. Thats why I changed it.

Thanks again,
Keith

24 Apr 2008, 4:57 AM
#11
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

wildkeith:

Hello,
Thanks for your help. I really appreciate it. I have a question though. If I change:

#logo {
text-align: center;
}

to:

#logo {
float: left;
}

Wouldn't my logo be aligned to the left of the page. Thats why I changed it.

Thanks again,
Keith

Oh, you did. We're going pretty quick here, I guess.
To answer your last question.........NO. It will stay right where it's at, because you're using the whole header section for your logo. It WILL be aligned to the left, but it actually won't move at all, since it's as wide as your main wrapper, if that makes any since. Just try it, you'll see.

24 Apr 2008, 5:07 AM
#12
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

You are awsome! I figured out where my thinking went wrong. Before I shrank the wrapper to its current dimensions, I needed the code to center it. It all makes sense now. Wow, this is a lot to wrap your mind around, but fun to. Do you recommend any reading for someone like me who is trying to learn how to change the visual layout of the store? I don't want to keep bothering with such simple problems.

Thank you so much,
Keith

24 Apr 2008, 5:20 AM
#13
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

Yep. The best reading you can get for Zen-Cart is everything in this forum AND just click the "Home" link at the top of ANY page in this forum. You'll see the book advertised there.

Now, one more thing about your site that is bugging me. It may not be something that's bothering you, but I (personal opinion) think it would make your left column (and the right one, if you decide to put boxes in it) look SOOOOOO much more..........neat and aligned properly.

Find this line in your css:

.leftBoxContainer  {
    border: 1px solid #ffffff;
    margin-top: 1.5em;
    }

And change to:

.leftBoxContainer, .rightBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 2.2em;
    }

Hope you like the way that aligns your columns. You won't see a difference on the right side until you add some boxes over there.

And no problem on the questions. The "simple" ones are ALWAYS a breath of fresh air around here. :smile:

24 Apr 2008, 5:35 AM
#14
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

Thanks, I'll try that. For some reason my site won't load now and my ftp can't connect. Don't know what thats about. Anyway, as soon as it starts working again I'll let you know how I like it.

Best Regards,
Keith

24 Apr 2008, 5:41 AM
#15
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: removing define('HEADER_SALES_TEXT','');

wildkeith:

Thanks, I'll try that. For some reason my site won't load now and my ftp can't connect. Don't know what thats about. Anyway, as soon as it starts working again I'll let you know how I like it.

Best Regards,
Keith

yea, I've been checking it, too. I'm on a satellite connection, and I kept going down in the storm that's in the area. Maybe your server is experiencing the same thing. Although, they should have precautions against this sort of thing.

Oh, there ya go. You're back up, now.

24 Apr 2008, 5:43 AM
#16
wildkeith avatar

wildkeith

New Zenner

Join Date:
Apr 2008
Posts:
33
Plugin Contributions:
0

Re: removing define('HEADER_SALES_TEXT','');

Ah, I see what you did there. Yes, that looks much better. I can't wait to be able to jump to the code like that and know what to tweak. But, for tonight I must retire as it's 2 A.M. here. Goodnight and thank you for all your help.

Best Regards,
Keith