Page 13 of 40 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 393
  1. #121
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Smart Backgrounds support

    You will either need to make the "cornfield" image large enough to cover any possible monitor, or do some blending in Photoshop to make the left edge match the right edge so it can tile horizontally.

    If you change the urls and links to relative ones as I showed, you will be able to use/test fully while it is on your server and it will work exactly the same on your client's server without changing code (except the configure files which will have to be edited in any case.)

  2. #122
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    I just tried the relative path using both
    background-image: url(../~stxmill/images/home_page/background.jpg);

    and this
    background-image: url(../images/home_page/background.jpg);

    Neither one displayed the background so i reverted back to how i had it for now. I can make the image larger and that isn't difficult by any means but the larger the image the larger the file size which means longer download time. Thought I could prevent that somehow.

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

    Default Re: Smart Backgrounds support

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

    This requires that your background.jpg image be in
    /includes/templates/your_template/images/home_page/. Is it there? Template images should be in the custom template folders.
    It would be easier to drop the /home_page/ subfolder.

    Since the page content hides most of the middle of the background, if you match the top (sky) and bottom (grass) from left to right edges and make the bg image say 650px wide, the seam would mostly be hidden anyway.

  4. #124
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    OK I got the relative path working so my image is now up with the right path...What does this actually do? Are you saying now no matter what my url is it will work. I wasn't following you too much on how i should edit the background and make it only 650px. I understand I can edit the file in photoshop by making the sky and corn similar but how can i only make it 650px and it work for other resolutions? Sorry I think i am following you because if it repeats it will be the same but if you could be a little more specific so i could be sure I am understanding correctly. Thanks for the info on the relative path. Very good instructions. Much appreciated.

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

    Default Re: Smart Backgrounds support

    Yes, it will work now no matter where the site is installed, without further editing.

    Add to the styling so that the background image repeats horizontally (with the edges matching since you have tweaked them in Photoshop), like this:
    Code:
        background-image: url(../images/background.jpg);
        background-repeat: repeat-x;
        background-position: top center;
    The "top center" will put the first copy in the middle of the page, with its seams still largely hidden by the 900px wide mainWrapper, and the next copies on left and right making a total width of 1950px before another seam shows.

  6. #126
    Join Date
    Jul 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    O.k

    you mentioned that i have a fixed logo. my apologies I forgot to remove it. I put it there to make a screen shot.
    I have now removed it.

    Do you know why the logo appears in a small frame above the body as you can see on the story pages and key stages categories?
    They are the only two pages where i have tested the smart background

    http://www.blueamigo.co.uk/zencart


    Glendon

  7. #127
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Quote Originally Posted by gjh42 View Post
    Yes, it will work now no matter where the site is installed, without further editing.

    Add to the styling so that the background image repeats horizontally (with the edges matching since you have tweaked them in Photoshop), like this:
    Code:
        background-image: url(../images/background.jpg);
        background-repeat: repeat-x;
        background-position: top center;
    The "top center" will put the first copy in the middle of the page, with its seams still largely hidden by the 900px wide mainWrapper, and the next copies on left and right making a total width of 1950px before another seam shows.
    I have the code in place but still haven't edited the photo in photoshop. Not sure exactly what I am needing to do. Do you just want me to match the sky so the left and the right look the same. But then what about vertical. The page is too small for larger resolutions vertically as well?

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

    Default Re: Smart Backgrounds support

    Yes, just match the left & right edges. You probably want to do some matching on the grass as well as the sky - see how they look and tweak accordingly.

    Hmm... the vertical part is trickier. Obviously you can't tile the image vertically. Probably your best bet is to give the body a background-color that matches the bottom edge of the grass. How tall is the image?

  9. #129
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Yeah I will try and mess with it. I just don't get which part the left and right tiles are coming from. They are both different. The image is 640pixels

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

    Default Re: Smart Backgrounds support

    Glendon -

    Your main stylesheet still has
    Code:
    #logoWrapper{
    	background-image: url(../images/header_bg.jpg);
    	background-repeat: repeat-x;
    	background-color: #ffffff;
    	height:145px;
    	}
    which makes the logo space solid white and 145px high. The height is probably ok, but you need to delete the background-color so the header bg can show through. Right now it is only visible in a small strip below #logoWrapper.

    Next you need toedit the smartbg stylesheet and change
    Code:
    .smartBG_4 #headerWrapper {background-image: url(../images/smartbg_4.gif);}
    .smartBG_15 #headerWrapper {background-image: url(../images/smartbg_15.gif);}
    to something like
    Code:
    #headerWrapper { /*this gets used on the home page and everywhere you don't have a custom image*/
        background-color: #ffffff; /*this makes sure the header bg is the color you want - you can delete it if #mainWrapper is the same color you want for your header*/
        background-image: url(../images/your_default_image.gif);
        background-position: top left; /*this can be modified to put the image in any position in the header*/
        background-repeat: no-repeat;
        }
    .smartBG_4 #headerWrapper {background: #ffffff url(../images/smartbg_4.gif) top left no-repeat;} /*this is a shorthand version of the above - it does the same things more compactly*/
    .smartBG_15 #headerWrapper {background: #ffffff url(../images/smartbg_15.gif) top left no-repeat;}

 

 
Page 13 of 40 FirstFirst ... 3111213141523 ... 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