Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    cart error modifying Logo wrapper with my HTML

    I want to be able to exchange this code:
    "<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td>

    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td><table bgcolor="#3A558B" width="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>
    <td width="500" border="0" cellpadding="0" cellspacing="0" rowspan="2"><a href="index.php"><img src="images/logot2.jpg" width="500" height="70" border="0"></a></td>
    <td width="100%">

    </td>

    WITH the code at the bof header logo which is
    "
    <div id="logoWrapper">
    <div id="logo"><a href="http://30408.vws.magma.ca/TTEZENCART/"><img src="includes/templates/Tte/images/logot2.jpg" alt="TTE.CA" title=" TTE.CA " width="500" height="70" /></a></div>
    </div>
    <br class="clearBoth" />

    My problem for the longest time now is I don't know and/or I can't locate the php file that will allow me to do this/ If for a fact that I can. If you run the above script you will see a banner without the actual logo. That is what i want to use instead of my loggo which is only "500" in width. I cant' make it longer without distorting the actual image.
    If anyone can help I would greatly appreciate it. I have to go on to other moodifications, but will have o return to this sooner or later. There must be a way because I already have it on my header of my retail store at www://thetrailingedge.com, the one I want to put on the Zen Cart layout does not have the search or cart incorporated in it.
    Looking forward to your suggestions and possible fix for this problem.
    Bob

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

    Default Re: modifying Logo wrapper with my HTML

    Scrap your idea of replacing code and learn to operate within the default structure

    Make just the text "tt dot ca" your logo.gif
    The gradient is added as a background image in the stylesheet.css as is a background color
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    cart error Re: modifying Logo wrapper with my HTML

    Good Day kobra,
    I really appreciate your information. The problem is I'm a newbie at this zen cart. I've learnt a lot from this forum. so here is the next one.
    I understand the part of logo.gif but do not understand what you mean by "Make just the text "tt dot ca" ". I'm assuming that "The gradient is added as a background image in the stylesheet.css as is a background color" would be pt in the " would be the lwihin the logo_wrapper.
    Again I apologize for my naivity, but do sincerely appreciate the help.
    Bob

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: modifying Logo wrapper with my HTML

    Hi Bob

    Understanding the principle of PHP-driven sites is often confusing, but the first requirement is that you stop thinking about page construction in terms of "flat" HTML.

    PHP works very differently, and is basically a system that FETCHES resources, elements and data from a variety of places, and then ASSEMBLES them.

    True, when the page is eventually sent to the browser, it is in HTML (so the browser can read and render it), but it is not a static page. The minute the visitor clicks a link, that page "evaporates" and a new one is ASSEMBLED by the PHP code.

    Some pages that are compiled in this way can have their components called and assembled from literally HUNDREDS of places.

    So you have to design and "tweak" the layouts using PHP code,

    There are many posts on re-arranging the header, and there are also some offerings in the Free Add-Ons for different header layouts.

    All these will be coded in PHP - so UN-learn what you know about HTML pages, and try to get a little understanding of PHP .
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: modifying Logo wrapper with my HTML

    Thanks for that explanation 'schoolboy' on how a PHP app works.

    I'm just reading through various posts and stumbled on this one...and your explanation was helpful to understanding how Zen Cart works...especially if someone is new to PHP.

    Jann

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: modifying Logo wrapper with my HTML

    Quote Originally Posted by jannz View Post
    Thanks for that explanation 'schoolboy' on how a PHP app works.

    I'm just reading through various posts and stumbled on this one...and your explanation was helpful to understanding how Zen Cart works...especially if someone is new to PHP.

    Jann
    For MOST people (including me 5 years ago), the initial encounter with PHP and MySQL is a "baptism of fire"... especially if you spent the previous 12 years working in HTML (or worse, with a WYSIWYG that did everything for you).

    HTML is just a "markup" language, whereas PHP is a "programming" language, and there is very little indeed that you can bring over from HTML ... other than appreciate that the PHP "cobbles" bits of it together (eventually), to make up a "page".

    I found that doing a set of online tutorials helped a lot - and there are many good ones out there that are FREE.

    I still know VERY LITTLE about PHP, but despite that, I have comfortably built simple routines for zencart, and even a couple of simple modules! (I am good at copying stuff, and have learned enough to know what a segment of code is likely to be doing, and where to "snip" and "paste".)

    Once you get more familiar, you will wonder why you stuck with flat HTML for so many years! Dynamic content sites are much better...
    20 years a Zencart User

 

 

Similar Threads

  1. v151 Catagory logo wrapper
    By billt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Feb 2013, 05:22 AM
  2. Problem with logo wrapper on Internet Explorer
    By klim in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Apr 2010, 05:46 PM
  3. Modifying default template problem with main wrapper size
    By gseiber in forum Basic Configuration
    Replies: 5
    Last Post: 29 Mar 2010, 12:22 PM
  4. header wrapper; logo wrapper
    By dhamma in forum Basic Configuration
    Replies: 6
    Last Post: 23 Jul 2008, 01:14 PM
  5. Logo Wrapper settings are not cooperating with me..Help please..
    By coolscrapbook in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 11 Dec 2007, 01:25 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