Forum Replies Created
-
Thanks, that worked nicely.
in reply to: Inserting CCS classes in to attributesOkay, this forum isn’t great for displaying code and has stripped out all of the information you need. I’ve attached two text files to this post to hopefully be clearer. The first one, current-code.txt, shows the code as it is on the page. The second one, wanted-code.txt, gives an example of what we are after.
Attachments:
You must be logged in to view attached files.in reply to: Inserting CCS classes in to attributesHi there,
I can’t give you a login right now but the example link to a page is here: http://couturefabrics.o2conline.co.uk/product/whitemulti-butterfly-printed-silk-satin/
I’ve also attached a screenshot of the page, the red box highlights the part we are trying to change. What we want to do is put in a class for each product attribute so we can later do something to them with CSS or javascript.Currently the code looks like this:
<table> <tr> <th>Designer</th> <td></td> </tr> <tr> <th>&nbsp</th> <td></td> </tr> <tr> <th>Width</th> <td><p>147cm x 140cm panel</p> </td> </tr> <tr> <th>Weight</th> <td></td> </tr> <tr> <th>Composition</th> <td><p>100% SE</p> </td> </tr> <tr> <th>Care Instruction</th> <td><p>TBC</p> </td> </tr> <tr> <th>Made in</th> <td><p>Italy</p> </td> </tr> <tr> <th>Product Number</th> <td><p>D1000</p> </td> </tr> </table>
What we’d like to get is something like this:
<table> <tr> <th>Designer</th> <td></td> </tr> <tr> <th>&nbsp</th> <td></td> </tr> <tr> <th>Width</th> <td><p>147cm x 140cm panel</p> </td> </tr> <tr> <th>Weight</th> <td></td> </tr> <tr> <th>Composition</th> <td><p>100% SE</p> </td> </tr> <tr> <th>Care Instruction</th> <td><p>TBC</p> </td> </tr> <tr> <th>Made in</th> <td><p>Italy</p> </td> </tr> <tr> <th>Product Number</th> <td><p>D1000</p> </td> </tr> </table>
So a different class for each attribute. WooCommerce has another plugin that lets you do this but for some reason your plugin is overwriting it. We’d like to work out a fix so if you could either let us know how to fix it or point us to the bit of code in your plugin that generates that part of the page we can take a look.
I hope that is a bit clearer for you.
Attachments:
You must be logged in to view attached files.in reply to: Inserting CCS classes in to attributesHi Junnie,
Thanks for getting back to me, I understand you probably have a lot of support tickets to get through.
However that isn’t an answer to my question as it is just talking about adding a class to an image. Is the idea that I would then use the same principle to add classes to the individual product attributes?
For reference I am trying to add classes to this code:
Designer   Width 147cm x 140cm panel
Weight Composition 100% SE
Care Instruction TBC
Made in Italy
Product Number D1000
Thanks.
in reply to: Inserting CCS classes in to attributesHi there,
Any information on this?
Thanks.
in reply to: Inserting CCS classes in to attributesHi Junnie,
No, I want to add classes to the attribute list used on single product pages. So the weight, dimensions, etc. used by every product on the site. I’ve tried using another plugin but the layout builder just seems to overwrite it so I was wondering if I could do it within your plugin. The thing is I need to add classes per attribute and not to the attribute block as a whole.
Thanks.
in reply to: Inserting CCS classes in to attributes