-
AuthorPosts
-
August 19, 2016 at 10:00 am #674618
Hi,
I searched on the forum but I found nothing that can help me so I’m writing you :)I would like to change the Instagram icon from Entypo-Fontello to Font Awesome.
I added this on the functions.php to add Font Awesome :
add_action( ‘wp_enqueue_scripts’, ‘enqueue_font_awesome’ );
function enqueue_font_awesome() {wp_enqueue_style( ‘font-awesome’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css’ );
}
And I replaced in the same php file the Instagram line by :
‘instagram’ => array( ‘font’ =>’font-awesome’, ‘icon’ => ‘uf16d’),Unfortunetly it doesn’t work ;(
Have you any idea where the problem is ?
Thank you very much for helping !
Regards,
ThibaultAugust 22, 2016 at 7:59 am #675554Hi Obeatone,
Sorry for the late reply, please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Regards,
RikardAugust 22, 2016 at 1:26 pm #675704Hi,
Thank you for replying !
You’ll find admin login in privacy area.Thank you!
Regards,
ThibaultAugust 24, 2016 at 9:30 am #676865Any idea ? :)
August 24, 2016 at 3:04 pm #677004Hi,
Please refer to this post – http://kriesi.at/documentation/enfold/change-icon-used-for-standard-theme-elements/ and this one – http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
Best regards,
YigitAugust 24, 2016 at 4:04 pm #677077Thank you for helping !
I tried but it still doesn’t work.
I uploaded the new instagram logo (font-awesome) in a zipped file via fontello.com and I added this in my function.php file :add_filter(‘avf_default_icons’,’avia_replace_standard_icon’, 10, 1);
function avia_replace_standard_icon($icons)
{
$icons[‘instagram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘uf16d’);
return $icons;
}I have no idea why it doesn’t work ;(
Thank you in advance for your help !
Regards,
ThibaultAugust 25, 2016 at 3:08 pm #677544hellllp please ;)
August 25, 2016 at 3:15 pm #677548Hey!
I changed the code to following one
add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1); function avia_replace_standard_icon($icons) { $icons['instagram'] = array( 'font' =>'fontello', 'icon' => 'uf16d'); return $icons; }
Please review your website now
Best regards,
YigitAugust 25, 2016 at 3:41 pm #677576Thank you for your help, It works now :)))
Regards,
ThibaultAugust 25, 2016 at 3:43 pm #677579 -
AuthorPosts
- The topic ‘Change Instagram and Basket Icons’ is closed to new replies.