Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Background image not showng on main page

    Any idea why the body background image would not show on the main page, but show on all other pages ? On the main page the background image flashes up briefly, then seems to get overridden with just blank white. However all other product pages show the same background image properly. I gather it's getting overridden somewhere, but not sure where. v 1.3.9h


    i.e the body background image

    body {
    background: url("../images/background2.jpg") repeat scroll 0 0 transparent;
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    /* background-color: #FFFFFF; #F1F3E9; #172317; #031903; #000000; #F1F3E9; #e5edf5; */
    }
    Thanks,
    007

  2. #2
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Background image not showng on main page

    I again presume it has to be the style sheet that's the problem and not the php scripts.
    Thanks,
    007

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Background image not showng on main page

    We might be able to spot something with a link to the site.

  4. #4
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Background image not showng on main page

    Quote Originally Posted by HeyIts007 View Post
    Any idea why the body background image would not show on the main page, but show on all other pages ? On the main page the background image flashes up briefly, then seems to get overridden with just blank white. However all other product pages show the same background image properly. I gather it's getting overridden somewhere, but not sure where. v 1.3.9h


    i.e the body background image

    body {
    background: url("../images/background2.jpg") repeat scroll 0 0 transparent;
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    /* background-color: #FFFFFF; #F1F3E9; #172317; #031903; #000000; #F1F3E9; #e5edf5; */
    }
    background: url("../images/background2.jpg") repeat scroll 0 0 transparent;

    Should be


    background: url('../images/background2.jpg') repeat scroll 0 0 transparent;

    And the image is to be in your template image folder
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  5. #5
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Background image not showng on main page

    Quote Originally Posted by usernamenone View Post
    background: url("../images/background2.jpg") repeat scroll 0 0 transparent;

    Should be


    background: url('../images/background2.jpg') repeat scroll 0 0 transparent;

    And the image is to be in your template image folder
    It'll work with either, or neither.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Background image not showng on main page

    The quotes are irrelevant - you can use single, double or no quotes, by official W3C specs.

    http://stackoverflow.com/questions/2...l-single-doubl

  7. #7
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Background image not showng on main page

    Hi folks, thanks for the advice. I have since progressed a step further toward the cause. I tested the same template on a test shopping site and the same problem did not occur. I repeat, the problem did not occur. Thus the background image was displayed properly on the main page.

    Thus this tells me that the stylesheet is not the cause of the problem, as it forms part of the template folder and I'm using exactly the same template folder on this test site. Thus the problems cause must lie elsewhere. The bug net gets smaller, but still yet to catch the bug. It might be one of the override files under the languages folder, as I have not copied these across to the test site, so I think step by step trial and error might bring me closer to the cause.

    Will let you know what I find.
    Thanks,
    007

  8. #8
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Background image not showing on main page

    Update. I've narrowed it down to the html_includes folder. i.e. when I copied the custom template folder under the html_includes folder to the test site, the same problem appeared. i.e. no background image on the main page, but was visible on other pages. Looking into it further.
    Thanks,
    007

  9. #9
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Background image not showng on main page

    The problem appears to be in the custom define_main_page.php file.
    Thanks,
    007

  10. #10
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Background image not showng on main page

    OK I deconstructed define_main_page.php on the test site and by breaking it down and removnig chunks at a time, then updating the test site and and refreshing the main page, I identified the following offending line.

    body {background:#fff; margin:0; padding:15; font-size: 67%;}
    Thanks,
    007

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Background image in the main page section
    By reneet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Mar 2010, 10:35 PM
  2. Background Colour/Image Main Page
    By gee38l in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 9 Jan 2009, 03:25 PM
  3. Background image on main page
    By johnagr in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Aug 2008, 01:49 AM
  4. Background image on main page
    By JHouston in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2008, 08:24 PM
  5. Main page background image problem!
    By tsaurus in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 1 Oct 2006, 03:13 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