I love Kadence and AI codes but I’m no expert and omg I’m exhausted…
-
Hi and thank you for this great help you guys share in this community, I’ll contribute when I know how to
I have already tried several CSS and PHP codes, both from online and from Windows Copilot, some things work, most don’t, tried searching this forum with keywords but other ppls issues differ here and there from mine, tried the suggested code to them but nothing
So I’m trying to modify a few things mostly related to the product catalog view of items in the grid, I’m sorry I’m going to try to ask all things in the same post but if you can help me with just one it’s fine, it’s great, tyvm in advance, I’ll put them in descending priority:
- When hovering over an item in the catalog, the “add to cart” appears from the bottom of the product but the text is all caps, takes two lines (it’s in spanish “A?ADIR AL CARRITO” with “CARRITO” in the 2nd line) and the vertical spacing between the two lines is TOO TALL, the whole box looks “bugged” or broken, specially in the Customizer where text lines overlap one another
2. I would like to change the vertical spacing in multiple things in the product catalog boxes:
– Between product image and title
– Between Title and regular price
– (When hovering) between discounted price and “Add to cart”
– SPECIALLY THIS ONE: Between the two lines of add to cart “A?ADIR AL CARRITO”
– Between CARRITO and the end of the box3. I’ve noticed some snippets work only in the default Customizer Additional CSS and some only inside a snippets plugin, I use WPCode in particular, why? Honestly I’d prefer to not have to use a plugin for snippets, for ex this code works in WPCode but not in AdditionalCSS:
/* Add random sorting */ add_filter('woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args'); function custom_woocommerce_get_catalog_ordering_args($args) { $orderby_value = isset($_GET['orderby']) ? wc_clean($_GET['orderby']) : apply_filters('woocommerce_default_catalog_orderby', get_option('woocommerce_default_catalog_orderby')); if ('random_list' == $orderby_value) { $args['orderby'] = 'rand'; $args['order'] = ''; $args['meta_key'] = ''; } return $args; } add_filter('woocommerce_default_catalog_orderby_options', 'custom_woocommerce_catalog_orderby'); add_filter('woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby'); function custom_woocommerce_catalog_orderby($sortby) { $sortby['random_list'] = 'Orden Aleatorio'; return $sortby; }
but for example these work only in Additional CSS and NOT in WPCode:
/* Turn off zoom in product page */ .woocommerce div.product div.images .woocommerce-product-gallery__wrapper { pointer-events: none; } /* Hide number of products in each category in categories list block */ .wc-block-product-categories-list-item-count { display: none; }
I have already tried clearing cache with “WP Fastest Cache”, as well as CTRL + F5 form incognito window, even closing and reopening
Thank you SOOOOO MUUUUUUCH for all help, I’ve really just invested too much time in this. I’m starting a 3 months full stack development basic course on July 2 but until then… I don’t think I’m asking for all that much, or am I? All opinions are welcome too, thanks
- This topic was modified 4 months, 3 weeks ago by .
- This topic was modified 4 months, 3 weeks ago by .
- This topic was modified 4 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.