Add icon to “Add to Cart” button

Hello.

I have uploaded this code:

add_action( ‘wp_enqueue_scripts’, ‘dcms_load_dashicons_front_end’ );

function dcms_load_dashicons_front_end(){
wp_enqueue_style( ‘dashicons’ );
}

in Avada-Child-Theme -> functions.php

Then in inserted the following code in custom CSS (where content: “f174”; is the cart icon):

.fusion-rollover div a::before{
font-family: “dashicons”;
content: “f174”;
}

but nothing, still no icon. I’ve tried this: before {, separate before from {, which are together in the code, but still no icon

AnswerQuote

Answered : 05/19/2018 1:30 pm

See also  Image resizing in VM 2 doesn't work correctly
Loading Facebook Comments ...
Loading Disqus Comments ...