Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2009
    Posts
    10
    Plugin Contributions
    0

    Default Banner failing to load...

    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8

    I am using a custom template called Darkness found here (http://(sorry, site offline)/templates.html)

    The code in the stylesheet is as follows on lines 194-199:

    #logoWrapper{
    background-repeat: repeat-x;
    background-color: #383E44;
    background-image: url(../includes/templates/custom/gsgbanner.jpg);
    height:144px;
    }

    The banner header will not show the image that I have. The image is not there whatsoever even if you view the source code off of the web.

    Thanks for any help,

  2. #2
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Banner failing to load...

    If you are sure the following code is in your template, then check that you have an image named "gsgbanner.jpg" in the "includes/templates/custom" directory? Also check that you have enabled the new template named "custom" in your Admin?

    background-image: url(../includes/templates/custom/gsgbanner.jpg);
    Another thing I find strange and could be a problem is that your image is not in the "images" directory of your template as follows:

    background-image: url(../includes/templates/custom/images/gsgbanner.jpg);
    If the above suggestions do not work, could you post your site's address so we can have a look at the problem?
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  3. #3
    Join Date
    Dec 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Banner failing to load...

    Quote Originally Posted by canopy View Post
    If you are sure the following code is in your template, then check that you have an image named "gsgbanner.jpg" in the "includes/templates/custom" directory? Also check that you have enabled the new template named "custom" in your Admin?

    Another thing I find strange and could be a problem is that your image is not in the "images" directory of your template as follows:

    If the above suggestions do not work, could you post your site's address so we can have a look at the problem?
    I checked to make sure the "gsgbanner.jpg" was there in that directory.

    I also placed the image as you suggested into the "Darkness" images directory for the template I am using. This also did not solve my problem... This is the code how it is now:

    #logoWrapper{
    background-repeat: repeat-x;
    background-color: #383E44;
    background-image: url(../includes/templates/Darkness/images/gsgbanner1.JPG);
    height:144px;
    }

    my web address for my store is: GUN SHOW GOODS .COM/zencart

    Just fill in the spaces... Thanks for the help.

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Banner failing to load...

    The link must be relative to the location of the stylesheet.

    Typically, the folder organisation in /includes/templates/custom contains

    ./css
    ./images


    Not when you want to link from a stylesheet in the ./css folder to a banner in the ./images folder you must use

    Code:
    background-image: url(../images/gsgbanner.jpg);

  5. #5
    Join Date
    Dec 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Banner failing to load...

    Quote Originally Posted by tino.schlegel View Post
    The link must be relative to the location of the stylesheet.

    Typically, the folder organisation in /includes/templates/custom contains

    ./css
    ./images


    Not when you want to link from a stylesheet in the ./css folder to a banner in the ./images folder you must use

    Code:
    background-image: url(../images/gsgbanner.jpg);
    ahhh thank you so much... thats what it was...

 

 

Similar Threads

  1. Change banner on page load
    By Glock1 in forum General Questions
    Replies: 2
    Last Post: 18 Oct 2011, 08:36 PM
  2. Rotating banner (stripviewer) out of place on load
    By Bonkycat in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 Jul 2011, 03:22 AM
  3. Includes Failing
    By SniperSteve in forum Installing on a Windows Server
    Replies: 2
    Last Post: 25 Jun 2008, 08:19 PM
  4. All my WYSIWIG Editors Failing to Load
    By ts232 in forum Basic Configuration
    Replies: 0
    Last Post: 19 Oct 2007, 05:39 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