Results 1 to 5 of 5
  1. #1
    Join Date
    May 2010
    Location
    London UK
    Posts
    134
    Plugin Contributions
    0

    Default Sub Category Background

    Hi,

    On my sub category pages i have a background behind the category icons, as shown here: http://www.pestcontrolonline.com/~pe...=index&cPath=1

    The problem is, i have downloaded the site and want to install it on a test server, but when i do that the images are no longer visible. I have check ed the css style sheet and the URL was pointing to my website so i have changed the address to http://127.0.0.1/pest/images/cat_back.png.

    But i am wondering if the link is now embeded in a page rather than using the one on a style sheet. I had thei work done for me and so really not sure the structure, is there a page which deals with the category icons. Any help would be appreciated.

    Thanks

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

    Default Re: Sub Category Background

    You have an absolute URL in your stylesheet instead of the proper relative URL:

    .categoryListBoxContents{
    background-image: url(//79.170.43.200/pestcontrolonline.com/images/cat_back.png);
    background-repeat: no-repeat;
    font-size: 1.5em;
    color: blue;
    height: 150px;
    width: 150px;
    padding: 2.5em 0.5em 0.5em 0.5em;
    text-align: center ;
    background-position: center ;
    }

    Should be

    background-image: url(../images/cat_back.png);
    if your bg image is in the /includes/templates/your_template/images/ folder as template images should be, or

    background-image: url(images/cat_back.png);
    if your image is in the base /images/ folder as you have it (this is intended for product images).

  3. #3
    Join Date
    May 2010
    Location
    London UK
    Posts
    134
    Plugin Contributions
    0

    Default Re: Sub Category Background

    Ok, this is now sorted, it was down to a backed up stylesheet lurchking in the css folder

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

    Default Re: Sub Category Background

    As you have found, any file that starts with "style" and has a .css extension will be loaded. If you need to keep a backup, save it somewhere else, or give it a .bak extension.

  5. #5
    Join Date
    May 2010
    Location
    London UK
    Posts
    134
    Plugin Contributions
    0

    Default Re: Sub Category Background

    Thanks, i thought renaming it would be good enough but obviously not, thanks for your help.

    Lee

 

 

Similar Threads

  1. How can I hide sub sub categories of a category in left sidebox?
    By X-Bumble in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Feb 2012, 07:11 PM
  2. Millions of Attributes or hacking a Sub sub sub Category?
    By liquidpictures in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2009, 02:25 PM
  3. Show sub-sub categories underneath sub-categories on the category page?
    By tomrice in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jun 2009, 03:05 AM
  4. Skip Page showing sub categories, go straight to first sub category
    By HelenSama in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 May 2009, 05:16 PM
  5. Sub-sub Category table on category page
    By hubert in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 May 2007, 10:52 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