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

    Default Re: Placing a DIV on product info pages

    You are right, this is the html I have in the start of my product description:

    <div class="ProductPagesLinksTable">
    <table>
    <tr>
    <td><a href="downloads/wzr-hp-ag300h_DS.pdf">View Datasheet</a> <img src="images/pdf.jpg" width="16" height="16" alt="PDF" /></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=page&id=17">Available Downloads</a> <img src="images/dow.gif" width="13" height="13" alt="download" /></td>
    </tr>
    </table>
    </div>

    and this is what I put in the css:

    #productListing .ProductPagesLinksTable {display:none;}

    but still the text shows on the product listing page. Am I doing something wrong?

  2. #12
    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
    You are right, this is the html I have in the start of my product description:

    <div class="ProductPagesLinksTable">
    <table>
    <tr>
    <td><a href="downloads/wzr-hp-ag300h_DS.pdf">View Datasheet</a> <img src="images/pdf.jpg" width="16" height="16" alt="PDF" /></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=page&id=17">Available Downloads</a> <img src="images/dow.gif" width="13" height="13" alt="download" /></td>
    </tr>
    </table>
    </div>

    and this is what I put in the css:

    #productListing .ProductPagesLinksTable {display:none;}

    but still the text shows on the product listing page. Am I doing something wrong?
    I think the problem is that the product listing page strips out any formating you may have introduced in the product description before truncating the text.

    In other words the <div>, <table>, <tr> and <td> tags are ignored and only the text is displayed.

    thats why this ( #productListing .ProductPagesLinksTable {display:none;} ) is not working.

    You might consider moving that section to the bottom of the product description. That will insure that the text will not be displayed on the product listing page.

    You'd have to figure out how to make sure it still displays as required on the product info page.

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

    Default Re: Placing a DIV on product info pages

    You are right. Thanks for the tip. I should have thought about moving the text to the bottom earlier. Such an easy solution I positioned the text with css so the text stays in the same place on the product page. Thanks a lot.

 

 
Page 2 of 2 FirstFirst 12

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