Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1194257

    Hi!
    I followed a thread here and added code for a custom font..however..I cannot figure out what the “font” is??

    This variable here – = array( ‘font’ =>’entypo-fontello’,

    The name of the font is, youtube.tiff etc, I downloaded it from fontello,

    json file says this – {
    “name”: “youtube”,
    “css_prefix_text”: “icon-“,
    “css_use_suffix”: false,
    “hinting”: true,
    “units_per_em”: 1000,
    “ascent”: 850,
    “glyphs”: [
    {
    “uid”: “47a1f80457068fbeab69fdb83d7d0817”,
    “css”: “youtube-play”,
    “code”: 61802,
    “src”: “fontawesome”
    }
    ]
    }

    I’ve tried, fontawesome, fontello, youtube and more..what am I missing?

    This is the code I added..

    function avia_add_custom_icon($icons) {
    $icons[‘cart’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    function avia_add_custom_social_icon($icons) {
    $icons[‘Cart’] = ‘cart’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    Thank you

    #1194523

    Hey finchkelsey,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1194898

    See below, thank you.

    I am trying to replace the social icon for the YouTube link for compliance. We have been instructed by YouTube to use a different logo so we can increase our daily queries limit, FYI.

    The code is placed in functions.php in the child theme.

    Thank you

    #1194932

    Hi finchkelsey,

    Thank you. Can you please have Appearance > Editor enabled for now?

    Best regards,
    Victoria

    #1195158

    Hi Victoria,
    This is a multisite, you user is a super admin..so you need to go to Network Admin ->Themes as I’m sure you know..thank you!

    #1195288

    Hi,
    The login url doesn’t seem to be working right now, please check
    Is your new YouTube icon function like this:

    function avia_add_custom_icon_play($icons) {
    	$icons['youtube-play'] = array( 'font' =>'fontawesome', 'icon' => '61802');
    	return $icons;
    	}
    	add_filter('avf_default_icons','avia_add_custom_icon_play', 10, 1);
    	
    	function avia_add_custom_social_icon_play($icons) {
    	$icons['youtube-play'] = 'youtube-play';
    	return $icons;
    	}
    add_filter('avf_social_icons_options','avia_add_custom_social_icon_play', 10, 1);

    Best regards,
    Mike

    #1195559

    Thank you..

    This doesn’t display the new icon ..

    61802 doesn’t display the icon..the charcode for the icon is /uf16a..

    Just not sure what I’m to put here..

    The icon itself is to be displayed in the socket..its there but no icon is displaying

    Below is a link to the font file..

    Thank you

    #1196179

    Hi,
    Thank you for the link to your icon file, from the css in it I see that your font-family is “youtube” and the code is “uf16a” so your custom icon function should look like this:

    function avia_add_custom_icon($icons) {
    	$icons['youtube-play']	 = array( 'font' =>'youtube', 'icon' => 'uf16a');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    function avia_add_custom_social_icon($icons) {
    	$icons['youtube-play'] = 'youtube-play';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Since you gave us sftp access I changed this for you, but you will still need to go to the social icon settings and choose the youtube icon again, I can’t login to do this.

    Best regards,
    Mike

    #1197536

    Thank you!!

    #1197604

    Hi,

    Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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