Arnopello
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] HTML in product attributes ( tag)That is a good idea! I’ll do that and will test next update.
Thanks mate
Forum: Plugins
In reply to: [WooCommerce] HTML in product attributes ( tag)Update: actually my custom product-attributes.php file gets deleted when updating the theme (and another file I created to implement a custom shortcode). Functions.php seems to get reset too, meaning any function I would add there would need to be re-added after each update (relating to @owadud655 solution).
I’ve read here and there that making a child theme would be the solution. I may do it eventually.
In the meantime I’ll just reupload my files and modifications each time I update. Theme gets updated less than woocommerce, and for less critical stuff usually, so that would be less work.
Forum: Plugins
In reply to: [WooCommerce] HTML in product attributes ( tag)Hi
First thanks both for providing solutions I haven’t seen in my extensive search on the web, or better explained.
I keep them close as they may be useful eventually. In the meantime, I have noticed the file which manages product attributes (namely product-attributes.php) has a big comment on the top saying “This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-attributes.php”. So I assumed that this file does not change that much (it basically just displays all the attributes if I’m not mistaking) and just did that.
I added my usual “html_entity_decode()” in the file, did a woocommerce update and it stayed the same. I would work this way unless I find some bugs appearing there.
Hi
You visited the website while I was doing some tests. If you check it now, you’ll see that I use the INPUT button. I polished it through CSS and I got the result I wanted.
Thanks for your answer.
Well, I think that there is some JS involved because classic CSS works like a charm. As I took back an existing class to take its settings, I think that it’s what is also linked to the JS which validate the form, as no <form> is involved.
So i’ll create a specific class.Sorry for the disturbing.