Home › Forums › WoodMart support forum › Choose elemnts to show in product style with CSS ?
Choose elemnts to show in product style with CSS ?
- This topic has 5 replies, 2 voices, and was last updated 4 weeks, 1 day ago by Hung Pham.
-
AuthorPosts
-
November 8, 2024 at 9:36 am #610651
dynamo-modelsParticipantHi,
Is it possible to add an attribute in products styles on grid ? You propose it natively in theme settings >product archives > products styles > Elements > show categories or show brand or show SKU. I would like to show an attribute I defined (the scale to precise)
If you have a CSS code to add in functions.php or else, it would be appreciate;
Regards,
November 8, 2024 at 6:27 pm #610886
Hung PhamKeymasterHello dynamo-models,
Thanks for reaching to us.
You need to define attributes from appropriate input in the settings of the product: https://prnt.sc/SgKJ1MdXGkz9,
Then you need to define the attributes that you want to see on the Shop archive as a dropdown in Theme Settings > Shop > Variable products > Grid swatch attribute to display: https://prnt.sc/3ZNFuaNFdCL3
Please check this manual and configure it for products.
https://xtemos.com/docs-topic/variable-products-and-swatches/Best Regards
November 12, 2024 at 12:58 pm #611596
dynamo-modelsParticipantHi,
This is not exactly what I ask for.
This is not for variantions of my product but to display 1 attribute aside of category on the grid.
In your options Product archives > Elements you propose this :
https://prnt.sc/9KW9WCacC_qhBut there is no switch button to add an attribute (like ‘scale’ for us)
Here is what I have on my grid homepage :
https://prnt.sc/hJ7iwZYw9WSkAnd this what I would like :
https://prnt.sc/2BbXzPrCGqJJSo as you can see on this footage, with the attribute chosen (scale ‘1/35’ here) clickable like ‘Kits’ just nearby.
Is it possible ?
Thanks
November 13, 2024 at 9:44 am #611792
Hung PhamKeymasterHello dynamo-models,
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Regards,
November 13, 2024 at 11:20 am #611827
dynamo-modelsParticipantHi Hung Pham,
I was not clear on my last post. The last screenshot is an editing image by Photoshop.
I’m not sure you find any answer in the back office. The only way to add an elements under my thumbnail is here :
https://prnt.sc/9KW9WCacC_qhMaybe you know another setting in Product Archives > Product Grid or Products Styles where I can define attribute appearance under my grid thumbnails ?
Can you please ask to admin maybe, if it’s possible to ADD clickable ATTRIBUTE choice under my thumbnail like the theme settings propose for CATEGORY or BRANDS or SKU or COUNT REVIEW.
The file contant-base.php manage this function.
Here is the div :
<div class="product-element-bottom product-information"> <?php /** * woocommerce_shop_loop_item_title hook * * @hooked woocommerce_template_loop_product_title - 10 */ do_action( 'woocommerce_shop_loop_item_title' ); ?> <?php woodmart_product_categories(); woodmart_product_brands_links(); woodmart_product_sku(); woodmart_stock_status_after_title(); ?> <div class="product-rating-price"> <div class="wrapp-product-price"> <?php /** * woocommerce_after_shop_loop_item_title hook * * @hooked woocommerce_template_loop_rating - 5 * @hooked woocommerce_template_loop_price - 10 */ do_action( 'woocommerce_after_shop_loop_item_title' ); ?> <?php echo wp_kses_post( woodmart_get_product_rating() ); ?> </div> </div> </div>
If I add this line in the list categories, brands_links, sku, or stock_status_after_tittle, it doesn’t work :
`woodmart_product_attribute(‘scale’); ‘
I have to add something more, my in functions.php, but I don’t know what.
Can you please ask to a developer ?
Best,
November 14, 2024 at 8:44 am #612046
Hung PhamKeymasterHello dynamo-models,
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Regards,
-
AuthorPosts
Tagged: CSS attribut products styles
- You must be logged in to create new topics. Login / Register