Help: Html Or Css, when customising with snippets??? Pros&cons?
-
I’m currently using WordPress WooCommerce with the Kadence theme pro and the Code Snippets Pro plugin. I’m not very experienced with coding and I’m having trouble adding a “padlock” icon next to the text of my “add to cart” button on the single product pages. I’m using the code snippets with the default theme customizer. By the way, I’m using ChatGPT/Gemini to generate codes. My main question is, “should I provide CSS copied from inspect elements or HTML codes”, when requesting code generation? When I provide the code, it gives me various options for executing the task, including editing HTML, PHP, CSS, or JavaScript. I can choose any of those options, but which approach is best for basic tasks like adding custom text, icons, or changing font colors? its confusing for me.
here;s an example
if I should give him css like,
CSS: woocommerce div.product form.cart .woocommerce-variation-add-to-cart { margin-top: 0.5em }
or if should I give him HTML like,
Html: ( <button type=”submit” class=”single\_add\_to\_cart\_button button alt”>Add to cart</button> )
- The topic ‘Help: Html Or Css, when customising with snippets??? Pros&cons?’ is closed to new replies.