Add font awesome icons to woocommerce cart, checkout pages, etc./ integrity stack

Hi,

Does X automatically come equipped with font awesome icons? If, so how can I use them in my billing address, checkout page, etc. for woocommerce? I tried using this code and nothing appeared. I also tried using the icon links and still nothing. Please help.

    add_filter('woocommerce_default_address_fields', 'override_default_address_checkout_fields', 20, 1);
function override_default_address_checkout_fields( $address_fields ) {
    $address_fields['first_name']['placeholder'] = 'ADD FONT AWESOME UNICODE HERE';
    $address_fields['last_name']['placeholder'] = 'ADD FONT AWESOME UNICODE HERE';
    $address_fields['address_1']['placeholder'] = '';
    $address_fields['state']['placeholder'] = 'ADD FONT AWESOME UNICODE HERE';
    $address_fields['postcode']['placeholder'] = 'ADD FONT AWESOME UNICODE HERE';
    $address_fields['city']['placeholder'] = 'ADD FONT AWESOME UNICODE HERE';
    return $address_fields;
}

Hello @fantasy_5,

Thanks for writing in! The X theme uses Font Awesome icons. You can actually enable the icons in X > Theme Options > Miscellaneous > Font Awesome. Regretfully, the WooCommerce fields does not support these icons. Your PHP code is not the correct way of adding the icons. It has to be added by way of custom CSS. Be aware that custom coding is already beyond the scope of our support. You may need to contact a 3rd-party developer to do this for you.

In the meanwhile, kindly check out this articles:

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.