Results 1 to 8 of 8

Hybrid View

  1. #1

    Default Add separator on product listing page

    I want to add a separator (<hr>) between each item on my product listing page. I looked in product_listing.php, but I don't know where to put this code or even if this is the way to do it. Any ideas how to do this?

  2. #2
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Add separator on product listing page

    A better solution would be to give the required amount of bottom margin/padding through CSS.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  3. #3

    Default Re: Add separator on product listing page

    I was thinking that I might be able to do it in CSS, but I don't know what codes to use or where. I'm new to CSS. Which line of codes do I look for and what would I do if I were to increase the padding? This might be a more elegant solution than <hr>.

  4. #4
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Add separator on product listing page

    Link us to your page.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  5. #5

    Default Re: Add separator on product listing page

    Here you go:
    http://www.cobraplant.com/plants/ind...dex&cPath=2_13

    While we're on the topic of CSS, I've been trying to add a shadow to the entire page, both left and right.

    I placed the following div codes in tpl_main_page.php (along with the appropriate closers):
    <div id="mainWrapperLeft">
    <div id="mainWrapperRight">
    <div id="mainWrapper">

    In CSS, I added the following to #mainWrapper:
    #mainWrapperLeft {
    background-image:url(../images/testdropshadowL.gif);
    background-position: top left;
    background-repeat: repeat-y;
    }

    #mainWrapperRight {
    background-image:url(../images/testdropshadowR.gif);
    background-position: top right;
    background-repeat: repeat-y;
    }

    Because my test gif was 40 pixels wide, I added a margin of the same size to the mainWrapper. So far, I'm not getting anything. Any thoughts what I might be doing wrong?

    I've also been looking for places to increase the padding between the items on the product listing page, but still I don't know what I'm looking for.

    I appreciate your help!

  6. #6
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Add separator on product listing page

    the product list displays in a table so dont think you can squeeze an <hr /> in there
    but you can try adding a bottom border that would give you that separator look

    find in your stylesheet (line 1095)

    .centeredContent, th, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading, .rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, label#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg

    {

    text-align: center;

    }


    and right under it add aditional definitions for the .productListing-data

    so you can add

    .productListing-data {
    border-bottom: 1px green solid;
    padding: 15px 0px;
    }

    or what ever other combination of line color, thickness, style and padding you want.

    hope this helps

 

 

Similar Threads

  1. Product Listing Page Add To Cart
    By matchlock in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Aug 2011, 01:59 AM
  2. Add sidebox in Product Listing Page
    By fawad123 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Sep 2010, 01:09 PM
  3. separator for Image product in product listing
    By taguchi_isara in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Nov 2007, 05:57 AM
  4. how to put a add to cart button on every product in product listing page??
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Sep 2007, 05:47 AM
  5. add button in product listing page
    By dannyd in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Feb 2007, 05:41 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