Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Top Banners-Wide Layout Questions

    Hi,

    First of all I have done a forum search and I have read the FAQ in the tutorial about banners: https://www.zen-cart.com/tutorials/index.php?article=80

    With that said.....

    I am trying to figure out a way to have two (2) 486x60 banners lay side by side in top banner position 2 (which is below my header) and possibly two side by side above the footer. I realize I may have to decrease the length of each slightly to avoid a side scroll.

    They can't be hardcoded in as I need them to all rotate. Due to the rotation, I also can't take 2 banners and combine them into a single image.

    Any ideas and/or suggestions appreciated-

    thank you,

    betty

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Move the code for one of the other banner positions to where you need it.
    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.

  3. #3
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Quote Originally Posted by Kim View Post
    Move the code for one of the other banner positions to where you need it.
    thank you Kim.

    Also I have looked and looked at the header template file and I cannot find where banner 1 is. If I enable it, a banner shows up above the header, yet in the code I can't see a reference to it. Is it hiding in disguise or are my eyes overlooking something simple?

    thank you again,

    betty

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Look in the tpl_main_page
    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.

  5. #5
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Quote Originally Posted by Kim View Post
    Move the code for one of the other banner positions to where you need it.
    Quote Originally Posted by Kim View Post
    Look in the tpl_main_page
    Well, the good news is that I found the banner 1 code in the tpl_main_page.

    The bad news is that I moved all the code that pertained to banner 1 to above where I moved the banner 2 code to in the tpl_header.php file.

    Got an unexpected "}" error in the tpl_main_page.php file, so I deleted the code on the error line which began on line 59:

    Code:
    <?php
        }
      }
    ?>
    so that error went away.

    That left me with an error of "unexpected end on line 135" (which is my last line) in the tpl_header.php file.

    I tried removing the line which is:

    Code:
    <?php } ?>
    and still got the same error message. So for now I put the files back the way they were to get rid of the error messages. Yet I still need to put the banners side by side. Between trying to figure out the code issues which normally my fiance does (is a trucker and on the road now) and how I'll change the div tags so they won't line break the banners....I'm stuck yet again and feeling totally stupid.

    As long as I've been using this cart, I should be able to figure out code by now, yet here I flounder. I don't know if I'm just dense or if it's the 14 different meds I take every day. What ever it is, I apologize that I yet again need to ask for help and/or advise.

    thank you,

    betty

    (apologies also for the mini emotional rant)

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Top Banners-Wide Layout Questions

    You have to get your brackets balanced ... the first was too many or in the wrong sequence ... the second was not enough and again in the wrong sequence ...

    Would it be easier to start with the clean file, and apply the changes you need now that you understand the banners better?

    Or, use something like Beyond Compare from scootersoftware.com where you can compare the two files and perhaps see where your code is out of wack?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Store Banners Site wide
    By BreaJR in forum Basic Configuration
    Replies: 0
    Last Post: 20 Sep 2006, 02:12 AM
  2. Wide Banners Help
    By waghelak in forum General Questions
    Replies: 0
    Last Post: 10 Jul 2006, 10:32 AM
  3. Wide banners only on frontpage
    By cakemaker in forum Basic Configuration
    Replies: 1
    Last Post: 10 Jun 2006, 11:03 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