Richard4485 Posted April 14 Posted April 14 I already have the code i need but i do not know where to put it at product pages. I only need to put a size table for those products needed so i guess not work on the CSS for all pages. But product description menu can't write CSS.
paul2009 Posted April 14 Posted April 14 Please provide more details of the size table (including a link to the code) and a working link to a product on your website. Richard4485 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Richard4485 Posted April 14 Author Posted April 14 10 minutes ago, paul2009 said: Please provide more details of the size table (including a link to the code) and a working link to a product on your website. Here is HTML code I put on Product Additional Info <table id="myTable"> <table> <tr> <th>size </th> <th>S</th> <th>L</th> <th>M</th> </tr> <tr> <td>in</td> <td>1‘'</td> </tr> <tr> <td>CM</td> <td>20</td> </tr> Add CSS table { width: 100%; border-collapse: collapse; margin: 20px 0; } th, td { border: 1px solid #ccc; padding: 8px; text-align: left; } th { background-color: #f2f2f2; } It shows at the very bottom of my page and i want to move it between my product description.
paul2009 Posted April 14 Posted April 14 Thanks for sharing the code. I noted that the HTML you've quoted is incomplete. This may be a copy and paste error but you'll want to check this. It will be possible to add a table like this to the Product Description using some custom JavaScript. The JavaScript solution will depend on how many tables of data you need to display. For example, does it need to apply the same basic table (and data) to all products, are there different tables for different products. Richard4485 and Earvin 2 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Richard4485 Posted April 14 Author Posted April 14 57 minutes ago, paul2009 said: Thanks for sharing the code. I noted that the HTML you've quoted is incomplete. This may be a copy and paste error but you'll want to check this. It will be possible to add a table like this to the Product Description using some custom JavaScript. The JavaScript solution will depend on how many tables of data you need to display. For example, does it need to apply the same basic table (and data) to all products, are there different tables for different products. Thank you for your help! It's my HTML incomplete. Now it works!
Recommended Posts