Hi,
1 => I’m willing to remove the text “Catégorie :” from the product meta info in order to only display linkcategory
2 => I would also like to replace the “Étiquettes : … , …” from the product meta info by “Principe Actifs” and get rid of the coma in order to only display linktags
You will see on the product page “link in private” that already managed most of the design i’m willing to acheive through CSS but I don’t find how to solve the text and coma problem.
Hey,
Please refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb and copy /enfold/config-templatebuilder/avia-shortcodes/product_snippets/product_snippet_meta.php to your child theme and then edit the file and delete the text from the code manually. Here are the lines you would need to modify:
$output .=wc_get_product_category_list( $product->get_id(), ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '</span>' );
and
$output .= wc_get_product_tag_list( $product->get_id(), ', ', '<span class="tagged_as">' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'woocommerce' ) . ' ', '</span>' );
Best regards,
Yigit
Perfect !
Thanks for the quick answer !
Have a good day ;)
Hi,
Glad we could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Best regards,
Yigit