Ecommerce Shopify WordPress Discussion

Adding a specific Fontawesome icon on Woocommece tab titles

I'm trying to add a custom fontawesome icon on each of my Woocommerce tabs, you know, the ones in the product pages : Description / Additional information / Reviews. I tried something like this : li.additional_information_tab::before { content: "\f005"; font-family: FontAwesome; padding: 0 10px 0 0; display: inline-block; } I'm expecting to get the icon (one specific icon for each tab title) to be displayed right before the tab title, but the icon displays on a line, and the tab title on the line after, I'm pretty sure I'm not doing it right, would someone have some idea about that ?
Try to use the following jQuery code instead: add_action( 'woocommerce_after_add_to_cart_form', 'custom_single_product_js' ); function custom_single_product_js(){ ?><script>jQuery(function($){ $('li.additional_information_tab a').prepend('<i class="fa fa-star"></i> '); });</script><?php } Code goes on functions.php file of your child theme (or in a plugin). Tested and works.

February 17, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.