Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Placing a DIV on product info pages

    I want to place a short text and image in a DIV on a product info page.
    I enter the html in Admin - > Catalog -> Categories/Products in the Products Description field and in the CSS file I enter the css code.

    The text and image is placed perfectly fine on the product info page however the text is also shown in the short text under the product on the product listing page.

    Is there a way to remove the text from the DIV on the product listing page? (only the text from the DIV, not the whole text).

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

    Default Re: Placing a DIV on product info pages

    You should be able to do something like this in the stylesheet:

    #productListing .yourdivclassname {display:none;}

  3. #3
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by stevesh View Post
    You should be able to do something like this in the stylesheet:

    #productListing .yourdivclassname {display:none;}

    I tried this but apparently it doesn't work. I still get the text from the product info page DIV on the product listing page. Any other ideas?

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

    Default Re: Placing a DIV on product info pages

    Maybe if we could see the product listing page in question.

  5. #5
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Placing a DIV on product info pages

    Yes, its here:

    http://www.nordfield.com/index.php?m...roducts_id=182

    and as you can see on the product listing page here:

    http://www.nordfield.com/index.php?m...index&cPath=65

    its the "View Datasheet Available Downloads" I want to hide.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by DML73 View Post
    Yes, its here:

    http://www.nordfield.com/index.php?m...roducts_id=182

    and as you can see on the product listing page here:

    http://www.nordfield.com/index.php?m...index&cPath=65

    its the "View Datasheet Available Downloads" I want to hide.
    add the following to your stylesheet.css

    .ProductPagesLinksTable {
    display:none;
    }

  7. #7
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by clydejones View Post
    add the following to your stylesheet.css

    .ProductPagesLinksTable {
    display:none;
    }

    This hides the text on the product info page, I want to hide it on the product listing page (only).

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by DML73 View Post
    This hides the text on the product info page, I want to hide it on the product listing page (only).
    Have you found a solution? Since I don't see the indicated text on the product listing page you cited.

  9. #9
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by clydejones View Post
    Have you found a solution? Since I don't see the indicated text on the product listing page you cited.

    No, the text is still there. If you look at the product listing page, the description for the 4 first products still starts with "View Datasheet Available Downloads". Thats the text I want to hide.

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Placing a DIV on product info pages

    Quote Originally Posted by DML73 View Post
    No, the text is still there. If you look at the product listing page, the description for the 4 first products still starts with "View Datasheet Available Downloads". Thats the text I want to hide.
    I don't know how you've structured your product descriptions, but apparently this text is the first 1 or 2 lines of the description. (correct me if I;m wrong)

    if that is the case then just surround that text in a <div class="dontDisplay"> </div>

    Then you should be able to follow stevesh's suggestion

    #productListing .dontDisplay {display:none;}

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 28 Feb 2014, 12:30 PM
  2. v139h Placing Same Image On All Product Pages
    By traytray in forum General Questions
    Replies: 5
    Last Post: 15 Aug 2013, 07:28 PM
  3. Use <div> tags in Product Info Page
    By rooisnor in forum General Questions
    Replies: 7
    Last Post: 29 Dec 2008, 12:30 PM
  4. Placing extra product info images
    By hbtrading in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jun 2006, 05: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