Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Location
    Upstate, NY
    Posts
    40
    Plugin Contributions
    0

    Default Sidebox Image header

    I've read this, tutorial. https://www.zen-cart.com/tutorials/i...hp?article=135

    And I can't seem to get it to work.

    First off, I don't have this code in my ss.
    Code:
    .leftBoxHeading {
    margin: 0em;
    background: url(../images/your_background_image.jpg) #ff6699;
    padding: 0.5em 0.2em;
    }
    .rightBoxHeading {
    margin: 0em;
    background: url(../images/your_background_image.jpg) #ff6699;
    padding: 0.2em 0em;
    }
    The only thing remotely close to that code is this.
    Code:
    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
    
    	margin: 0em;
    
    	background-color: #000000;
    
    	
    
    	padding: 0.5em 0.2em;
    
    	}
    I guess what I'm trying to do is keep the word of the header (ie Categories) and put an image behind said word as a background.

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    You might want to have a look at the Categories Dressing mod in the free Software Add Ons (link top-left.)

    Rob

  3. #3
    Join Date
    Jan 2009
    Location
    Upstate, NY
    Posts
    40
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    I see "To display images in place of selected category names:"

    But I don't want it in place of. I'm looking for 'in addition to the names...'

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    Well, you can certainly add the word to the image. It doesn't have to be text after all.

    Rob

  5. #5
    Join Date
    Jan 2009
    Location
    Upstate, NY
    Posts
    40
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    This is true. But then I need to create images for each header.

    I'm having a hard time believing you can't just insert the image into that section...just seems too complicated to me for some reason.

    Of course, coding is NOT my strength in computers.

    Thanks for the info, Rob.

    Jeff

  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    Sorry, I just reread what you said in your original question. I thought you were saying that you had tried that code and it didn't work, so I proceeded from there. But I see now that you just say you don't have that code in your stylesheet.

    I believe, in CSS in general, that wherever you have a background-color declaration that works, you can substitute a background-image declaration instead. So the code in your first example above should be the way to go.

    So did you add it and it didn't work? Or did you not realize you could add it? If the latter, put that code down at the bottom of your stylesheet.css (to avoid messing up earlier declarations for the same elements) and try it out.

    Rob

  7. #7
    Join Date
    Jan 2009
    Location
    Upstate, NY
    Posts
    40
    Plugin Contributions
    0

    Default Re: Sidebox Image header

    Ah, putting it at the bottom of the ss file worked. Thanks. I had to add a height limit on there as I was getting a weird issue with the Search header.

    All the other headers were 24px and the search one was 26px for some reason.

    The headers do show up differently though in IE for some reason, they start to display again under the image. But in FF they don't show..

    http://www.project-hope.info/store/

 

 

Similar Threads

  1. Sidebox throwing image above header?
    By AMillard in forum Basic Configuration
    Replies: 1
    Last Post: 22 Nov 2007, 02:59 AM
  2. Sidebox throwing image above header?
    By AMillard in forum General Questions
    Replies: 1
    Last Post: 20 Nov 2007, 05:37 PM
  3. Sidebox Header image not working
    By bluealice in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Sep 2007, 06:51 PM
  4. Sidebox Header Image Troubles... :(
    By ssdsarah in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Sep 2007, 05:49 AM
  5. shopping cart image in sidebox when using image for box header
    By JenRed in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jan 2007, 04:33 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