Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    45
    Plugin Contributions
    0

    Default Where is the Categoties left box source code?

    Can someone please tell me how I can either get access to the source code for the left hand side Categories panel, or how I can overwrite one?

    I need to add a rounded box to the bottom of the category so need access to the HTML.

    Any help is really appreciated
    Freelance Web Designer - Michael Edwards

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

    Default Re: Where is the Categoties left box source code?

    Actually, you don't need access to the HTML in /includes/templates/your_template/sideboxes/tpl_categories.php; all you need to do is add custom styling to the existing sidebox elements with CSS.

    Add these rules to your stylesheet and use whatever properties you need, such as padding: and background-image: or if you don't need to support old IE versions border-radius:

    #categories {}
    #categoriesContent {}

  3. #3
    Join Date
    Apr 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Where is the Categoties left box source code?

    Hi there,

    Thanks for the URL. In fact css will not solve my problem on it's own. I am not using HTML5 on this project so I need to add a new div to hold the rounded corner png file.

    Freelance Web Designer - Michael Edwards

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

    Default Re: Where is the Categoties left box source code?

    Border-radius is not HTML5; It has been a valid CSS property for many years, but is only now feasible to use because IE9 and newer finally support it.

    You also don't need to add a new div to use a bottom rounded corners image. Put the rounded file as background-image for the #categories container with padding-bottom to clear the content up from the curves, then give the borders to left and right of #categoriesContent. Problem solved without touching PHP files.
    Last edited by gjh42; 24 Jan 2012 at 03:46 PM.

 

 

Similar Threads

  1. Source code didn't change the page source
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Sep 2011, 02:33 PM
  2. Where is my source code?
    By Ambitions in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2010, 02:51 PM
  3. CVV2 Code - where's the card security code entered?
    By jamieboulder in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2008, 06:05 PM
  4. where is source code of "sold out" image?
    By Momokui in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Jan 2007, 11:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR