Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1366045


    I was trying to add a custom social profile with a icon from a uploaded font.
    I used this code as described here:
    Unfortunatly it didnt work. Could you please give me advise?

    	// Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['discord'] = array( 'font' =>'additionalcustomicons', 'icon' => 'ue800');
    	return $icons;
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['Discord'] = 'discord';
    	return $icons;
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Hey dr_dominik,

    Thank you for the inquiry.

    You accidentally placed the filter inside a condition just after the return statement. We just moved the filter one line downward. You can now select the Discord social icon in the Enfold > Social Profiles.

    Best regards,

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.