Thread: Extra <br>

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Extra <br>

    There is an extra <br> in between the title and price on this page:

    http://lfswear.com/sites/lfs/index.p...=index&cPath=1

    Can someone help me remove it?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Extra <br>

    I don't think it's an extra <br>. Your template has 10px of padding-bottom in the h3 rule. It also has -10px of margin-bottom in the the .itemTitle rule. Fiddling with those will let you move the price closer to the title.

  3. #3
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Extra <br>

    In firebug it in fact does show that there is a <br>

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Extra <br>

    dd,
    Just locate the .php file that operates this page..
    includes/ modules/ pure_bw/ product_listing.php

  5. #5
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Extra <br>

    when you fid the <br> delete it

  6. #6
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Extra <br>

    I've already looked there before I posted the question, there is a <br> after the price, but not before... weird...

  7. #7
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Extra <br>

    You have a <br> before and 2 <br>s after the price.

    the first <br> is coming from the product name/description, so if you look in your includes/modules/YOUR_TEMPLATE/product_listing.php file

    look for:
    Code:
    case 'PRODUCT_LIST_NAME':
    within the code you will see somthing that looks like this:
    Code:
    en_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div><br />'
    remove that <br>

    hope this helps!

  8. #8
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Extra <br>

    Funny thing is, there isnt a <br> there!

    This is what I have (line 139)

    $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;

  9. #9
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Extra <br>

    looking at you new products layout you do not have the description class/id which eliminates the gap between the name & price. I am assuming based on your original site you wont be using the description anyway.

    try removing the .listingDescription div

  10. #10
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Extra <br>

    Changed up the code, now I've got:



    I'm going to try to remove the description from the actual product and see what happens... (When I posted the product, In the description I put "No Description")

    UPDATE: Removed description from actual product. It successfully removed the description but doesn't remove the space, strannggeee.

    UPDATE: Removed some more code from product_listing.php, Now it removed the description on the category page, but left the space. Damn thing.
    Last edited by dddmx3; 26 Mar 2011 at 04:51 AM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how can I insert extra product info into extra db table?
    By lndlyb4 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Feb 2010, 07:18 PM
  2. Extra! Extra! Zen Cart Owners Manual Available!
    By Kim in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 10 Feb 2007, 04:45 PM
  3. extra
    By bean_2k1 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Dec 2006, 02:01 AM
  4. Extra Tables to show extra product info
    By oldsteel68 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Nov 2006, 03:56 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