Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Location
    Cornwall UK
    Posts
    33
    Plugin Contributions
    0

    help question Line Break after each category

    Hello,
    Anyone know how to eliminate the <br/> after each category.

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Line Break after each category

    Quote Originally Posted by Charlie Denver View Post
    Hello,
    Anyone know how to eliminate the <br/> after each category.
    Where? in the sidebox? Or on a category page?

  3. #3
    Join Date
    Jul 2007
    Location
    Cornwall UK
    Posts
    33
    Plugin Contributions
    0

    Default Re: Line Break after each category

    Greetings,
    I am having trouble applying display:block on the categories sideboxcontent, all other sideboxes appear OK as they are ul's
    basically It looks like there is a line break after each category which increases the size of the block.
    I want to hover over the entire block, rather than just the text. It works fine for informationsidebox etc. Its just these line breaks. I can see them in the html but can't work out if they are removable, or built by Zen on the fly

    This is what I have in my CSS

    .sideBoxContent {
    margin: 0;
    padding: 0;
    background-color: #6F6146;
    list-style-type: none;
    }

    .sideBoxContent a {
    display: block;
    color: #FFF;
    text-decoration: none;
    padding: 0 15px;
    line-height: 1.5;
    border-bottom: 1px solid #FFF;
    }

    Any Ideas


  4. #4
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Line Break after each category

    Quote Originally Posted by Charlie Denver View Post
    Greetings,
    I am having trouble applying display:block on the categories sideboxcontent, all other sideboxes appear OK as they are ul's
    basically It looks like there is a line break after each category which increases the size of the block.
    I want to hover over the entire block, rather than just the text. It works fine for informationsidebox etc. Its just these line breaks. I can see them in the html but can't work out if they are removable, or built by Zen on the fly

    This is what I have in my CSS

    .sideBoxContent {
    margin: 0;
    padding: 0;
    background-color: #6F6146;
    list-style-type: none;
    }

    .sideBoxContent a {
    display: block;
    color: #FFF;
    text-decoration: none;
    padding: 0 15px;
    line-height: 1.5;
    border-bottom: 1px solid #FFF;
    }

    Any Ideas

    I believe the <br />'s you are looking for will be in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php, approx. line 57

    $content .= '<br />' . "\n";

  5. #5
    Join Date
    Jul 2007
    Location
    Cornwall UK
    Posts
    33
    Plugin Contributions
    0

    Default Re: Line Break after each category

    Yes, thats the one. Thanks. Your'e a Star

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

    Default Re: Line Break after each category

    You might look at Categories Dressing for various ways to handle tpl_categories.php...

 

 

Similar Threads

  1. Replies: 7
    Last Post: 10 Jan 2016, 08:49 PM
  2. Category pages: Photos are not lining up straight - extra line break on second column
    By Abigail123 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 25 Jan 2010, 04:53 PM
  3. line break in product description in category list
    By czepp in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 17 Dec 2009, 10:38 PM
  4. Possible to put a Break Line in Category Box?
    By stlnyc in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Oct 2008, 04:59 PM
  5. Line after each item in cart?
    By julieoolie in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 5 Feb 2008, 02: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