Page 36 of 40 FirstFirst ... 263435363738 ... LastLast
Results 351 to 360 of 393
  1. #351
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Smart Backgrounds support

    Two possible problems here:
    .smartBG_page2 # {background-image: url(../images/smartBG_page2.jpg);}

    The # by itself will not work for anything. What element do you want the background on? If the whole page content, use #mainWrapper.

    What is the exact filename you used? CSS is case-sensitive; smartBG_page2.jpg is not the same as smartbg_page2.jpg, which is what the code looks for.

    .smartBG_page2 #mainWrapper {background-image: url(../images/smartbg_page2.jpg);}

    The stylesheet examples are there to guide you in correct usage.
    Last edited by gjh42; 11 Feb 2011 at 03:56 AM.

  2. #352
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Maybe I'm misunderstanding this:
    Sample stylesheet rules:

    /*example to set default header bg*/
    #headerWrapper {background-image: url(../images/whatever.gif);}

    /*example to set header bg for listing or product page in category id 23*/
    .smartBG_23 #headerWrapper {background-image: url(../images/smartbg_23.gif);}

    /*example to set header bg for shipping & returns page*/
    .smartBG_shippinginfo #headerWrapper {background-image: url(../images/smartbg_shippinginfo.gif);}

    /*example to set content bg for ez-page id 5*/
    .smartBG_page5 #contentMainWrapper {background-image: url(../images/smartbg_page5.gif);}
    /*example to set center column bg for ez-page id 5*/
    .smartBG_page5 .centerColumn {background-image: url(../images/smartbg_page5.gif);}
    Here's what I've got on the last line in my Stylesheet:
    .smartBG_page2 #mainwrapper {background-image: url(../images/smartbg_page2.jpg);}

    Tried this, no change.
    .smartbg_page2 #mainwrapper {background-image: url(../images/smartbg_page2.jpg

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

    Default Re: Smart Backgrounds support

    Spelling and capitalization are critical. Code doesn't work with approximately right names.

    .../index.php?main_page=page_2

    .smartBG_page_2 #mainWrapper {background-image: url(../images/smartbg_page_2.jpg);}

    If you want ez-page backgrounds, smartbg_page2.jpg would work correctly on ez-page id 2.

    .smartBG_page2 #mainWrapper {background-image: url(../images/smartbg_page2.jpg);}
    Last edited by gjh42; 11 Feb 2011 at 04:23 AM.

  4. #354
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    .../index.php?main_page=page_2
    Huh?! What or where is that supposed to go?

    capitize the "w"....check!!
    .smartBG_page2 #mainWrapper {background-image: url(../images/smartbg_page2.jpg);}

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

    Default Re: Smart Backgrounds support

    Sorry, my first thought was that you had missed the correct name for define page 2, which would show that in the address bar.

  6. #356
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Okay....but am I supposed to do something with that?


    Still fighting this tooth and nail....and losing it would seem.

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

    Default Re: Smart Backgrounds support

    Okay, is it an ez-page or a define page that you want the background for? You have described both at various times, so it's not clear which you want here.
    Copy & paste the text in the address bar (index.php?main_page=...) so I can tell exactly what page you want, and paste in the exact image filename & location, and the stylesheet rule that relates to it.

  8. #358
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    The one I'm currently trying to work on is a define page, (page #2) but I do want All of the pages to have a different background.

    localhost/zencart/index.php?main_page=page_2

  9. #359
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Trying to start with a clean slate this morning so I removed this line from the style sheet.

    .smartBG_page2 #mainWrapper {background-image: url(../images/smartbg_page2.jpg);}

    As I stated previously, I had it at the bottom of the page. Should it go elsewhere in the stylesheet or replace an existing line?

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

    Default Re: Smart Backgrounds support

    For define page 2, which has main_page=page_2, you need an image named smartbg_page_2.jpg in /includes/templates/your_template/images/, and a stylesheet rule

    .smartBG_page_2 #mainWrapper {background-image: url(../images/smartbg_page_2.jpg);}

 

 
Page 36 of 40 FirstFirst ... 263435363738 ... LastLast

Similar Threads

  1. Adding Image Map to header with Smart Backgrounds
    By cspan27 in forum Addon Templates
    Replies: 16
    Last Post: 25 Jul 2009, 01:14 AM
  2. smart backgrounds
    By Glendon in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Sep 2008, 04:49 PM
  3. Backgrounds
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jun 2006, 06:14 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