Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,725
    Plugin Contributions
    13

    Default Re: where is Stylesheet?

    Me thinks thou hast jumped on thine horse and ridden madly off in all directions!
    We've all been there. I remember my excitement when I was able to find ZenCart thanks to Ajeh.
    Take the time to smell the roses. Read the FAQ's, find out what the various controls in the Admin Panel can do. Start at the top of Configuration and work your way down.
    Next, in Catalog, find out how easy it is to add color choices to the Baby Theme Box. Hint: when you're there, search the forum for Please Select.
    Looks like you're knowledgeable in the ways of some basics but investigate the Developers Tool Kit under the Tools in Admin.
    On your journey, you'll be amazed at what Zen can do.
    Check out the forum and FAQ's on overrides. You'd be better off to regroup with overrides than get in the mess others of us have before you.
    Your background image is chopped because of the settings for logo.gif which you have eliminated. In includes/languages/english/header.php you'll find the settings for the logo.gif under "added defines for header alt and text."
    My little trick for some time now has been to put some background in header_bg.jpg to fill-in when needed and take what you used for header_bg.jpg and use it for the logo.gif. Would work great for you with the fixed store width. Also, it allows you to keep the alt text and the link.
    Sorry for carrying on but, take it from me and many others, jumping in with both feet can lead to drowning.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #12
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where is Stylesheet?

    Lots of good advice from dbltoe above which I won't repeat.

    More specifically your header banner is a background image which doesn't affect the height of the table cell that contains it. The logo did affect this, but you have deleted, so the cell doesn't need as much space and has partially closed up. I'll talk about a solution to this in a moment.

    The link left behind when your logo has gone is contained in a a file called includes/languages/english/header.php. You may already have a copy in includes/languages/english/YOUR_TEMPLATE_NAME/header.php file (YOUR_TEMPLATE_NAME is currently classic but see below). If not you should create one. You can then edit the following line in the new file
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
    And the animations? I'm afraid I'm not sure to which images you are referring.

    OK, you have two possible solutions. Either faff about trying to get the table cell to match the height of your image. Or, take a step backwards and design as the Zen Cart development team intended you to do harnessing the power of the template_default.

    As a new user you have defaulted to the classic template. This is intended primarily for backward compatibility with earlier versions of Zen Cart. I recommend replacing it with the Future Zen template which engages template_default and is the way forward, as well as being much easier for new users to work with. You can download it from the downloads section of this site, or by clicking on the link in my signature below.

    At this point I would normally go on to tell you that you then need only change the values highlighted below in your stylesheet to make your header banner display properly. But in your case you don't even need to do that, since they are already set to the exact dimensions of your image
    #logoWrapper {
    width:760px;
    height:110px;
    background-image:url(../images/header_bg.jpg);
    background-repeat:no-repeat;
    }
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #13

    Default Re: where is Stylesheet?

    Hello and thank you kuroi,
    Let see if this dummy got it!!
    >>includes/languages/english/header.php.
    >>// added defines for header alt and text (delete 2 lines bellow).
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_SALES_TEXT', 'TagLine Here');
    >>>Now what about header with 192 and height 64?
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    >>>are those info for another logo?

    The Footer banner is annimated as well as the mouse pad picture.
    Thanks guys for helping me understand how this thing s work.
    [FONT="Comic Sans MS"]Fereepo[/FONT]

  4. #14
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where is Stylesheet?

    Quote Originally Posted by FEREE M.
    Hello and thank you kuroi,
    Let see if this dummy got it!!
    >>includes/languages/english/header.php.
    >>// added defines for header alt and text (delete 2 lines bellow).
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_SALES_TEXT', 'TagLine Here');
    NOOO. But you are making good progress.

    Lesson two is called overrides. In principle you don't alter the files that come with Zen Cart - there are exceptions, but this is the principle. The reason is because they may be overwritten next time there's an upgrade. Instead you make a copy one level down and edit that.

    Example: you want to make a change to includes/languages/english/header.php, then create a directory called includes/languages/english/YOUR_TEMPLATE_NAME. Make a copy of header.php and put it in there. Then edit that. Zen Cart is smart, it will see that you've done this and use your file instead. And next time you upgrade it will over write the original file, not the one with your changes.

    Second point. Don't delete define statements. Zen Cart still needs them and if it can't find a defined value for HEADER_ALT_TEXT, it will simply output "HEADER_ALT_TEXT" on your screen for the world to see that you've screwed up. If you want to blank the text that's there, change the lines to
    define('HEADER_ALT_TEXT', '');
    define('HEADER_SALES_TEXT', '');
    (Those are two single apostrophes indicating an empty string, not double quotes)
    Quote Originally Posted by FEREE M.
    >>>Now what about header with 192 and height 64?
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    >>>are those info for another logo?
    You may be mixing up two things here ... the logo and the header banner. The logo is an image that sits in front of the header, and the header banner is an image that sits behind it. You appear to have deleted the logo and are using the header as a logo. That's fine and not at all unusual. When you replace the text above with empty strings, it really won't matter a jot.

    Quote Originally Posted by FEREE M.
    The Footer banner is annimated as well as the mouse pad picture.
    Hmmm, slowest animation I've seen recently. Haven't yet seen it change. Are yoiu refering to the way different banners are shown each time the page is refreshed?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #15

    Default Re: where is Stylesheet?

    Wow!
    Lots of info. But I got the point. DO NOT TOUCH any thing unless you realy now what you are doing!!!!!!!!!
    About animations, That is my question. It looks like only one frame has been up loaded. Refresh page few times, you will see they move around and are replaced by ZenCart pictures.
    Please let me know what you think.
    Regards.
    [FONT="Comic Sans MS"]Fereepo[/FONT]

  6. #16
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where is Stylesheet?

    Quote Originally Posted by FEREE M.
    DO NOT TOUCH any thing unless you realy now what you are doing!!!!!!!!!
    Sort of. You have to change these things, but don't change the original version, make your own copy and put it where Zen Cart expects to find it.
    Quote Originally Posted by FEREE M.
    About animations, That is my question. It looks like only one frame has been up loaded. Refresh page few times, you will see they move around and are replaced by ZenCart pictures.
    What you are looking at are sidebox banners. Little advertisements that are different each the page is loaded. However, in the default version of Zen Cart you only get a few (including for Zen Cart iteself) which is why they often come up the same.[/QUOTE]
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Where is the stylesheet loaded?
    By ricardino in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Sep 2009, 09:36 AM
  2. Stylesheet - where is it
    By fatgazza1972 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Apr 2008, 09:58 AM
  3. Where are this stylesheet
    By vr4indian in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Nov 2006, 03:16 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