Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2007
    Posts
    18
    Plugin Contributions
    0

    Default what did i do wrong with this

    hello :)

    So upon trying to remove the zen logo and sales message from the logo, i searched the forums and tutorials and thought i found the answer so i modified my tpl header to this

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

    and i get <----> the left corner of my logo, no zen cart logo.

    I still have the sales message goes here in gray. So I attempted to add the following:
    define('HEADER_SALES_TEXT', ");'<h1>Sales Message Goes Here</h1>');
    which i found on the forums. then when i upload it all to a test server in my office my site goes blank. So the site isn't live yet.

    I don't know what i have done wrong

    Morga

  2. #2
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: what did i do wrong with this

    and i get <----> the left corner of my logo
    remove the <-- and the --> and you should be ok.


    define('HEADER_SALES_TEXT', ");'<h1>Sales Message Goes Here</h1>');

    That looks wrong. See the end ) without the beginning ( ?

    Take a look at the original file to see how that line was set up and compare it to what you have.

    Tina

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: what did i do wrong with this

    It is seldom that you would need to mess with a tpl_ file.

    You can change the logo in the includes/languages/english.php file and the sales text in the includes/languages/english/header.php files. If you do not want to use any logo.gif, you can turn it off in the css.

    Be sure to save the changes as includes/languages/CUSTOM/english.php and includes/languages/english/CUSTOM/header.php respectively in order to not lose the changes in an upgrade.
    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.

  4. #4
    Join Date
    Nov 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: what did i do wrong with this

    ok I see the problem the original code is :
    define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

    so upon a nice lil walk to think i came back and switched to
    define('HEADER_SALES_TEXT', '');

    I left in the single ' after the comma



    as for my red arrows... well i use <-- instead of <!--


    thank you
    Morga


    PS> Dbltoe I knew I took the long route! dang it ! :)

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: what did i do wrong with this

    Glad you got it going. You're seeing why I have the sig.
    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.

  6. #6
    Join Date
    Nov 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: what did i do wrong with this

    now i have run into a problem where my logo has been cut off. according to my main_bg it is 10.556x1.528 inches and 72dpi.

    current code looks like this.
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    I don't remember changing anything so any help would be appreciated in fixing this

    Morga

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: what did i do wrong with this

    Really need to see the site to answer that one.
    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.

  8. #8
    Join Date
    Nov 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: what did i do wrong with this

    i just uploaded it to make sure i had a problem :)

    here ya go

    http://www.myshoehabit/storefront

    Morga

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: what did i do wrong with this

    Your image is 761x110 and the css is set to 75 for the height.

    Around line 200 of your stylesheet, change the height: 75px; to height: 90px;

    Adjust the 90 up or down to suit your needs.

    Additionally, you don't really need the background-repeat: repeat-x; and can change it to /*background-repeat: repeart-x;*/ in case you may need it later.
    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.

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: what did i do wrong with this

    As to the links and other css tweaks, make sure you have the new firefox3 with the new firebug addon. Couldn't do a thing without that addon
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 What is wrong with this one line of code??
    By tlyczko in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2013, 03:37 PM
  2. v150 What's wrong with this code...
    By Coins2012 in forum Addon Templates
    Replies: 7
    Last Post: 3 Feb 2012, 03:13 PM
  3. What's wrong with this picture?
    By robsnowden in forum General Questions
    Replies: 5
    Last Post: 29 Oct 2007, 08:37 PM
  4. What's wrong with this query ?
    By emmdee in forum Basic Configuration
    Replies: 5
    Last Post: 10 Jul 2006, 06:21 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