-
AuthorPosts
-
March 18, 2020 at 11:16 pm #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
March 19, 2020 at 7:04 pm #1194523Hey 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,
VictoriaMarch 20, 2020 at 7:47 pm #1194898See 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
March 20, 2020 at 8:47 pm #1194932Hi finchkelsey,
Thank you. Can you please have Appearance > Editor enabled for now?
Best regards,
VictoriaMarch 21, 2020 at 11:34 pm #1195158Hi 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!March 22, 2020 at 7:55 pm #1195288Hi,
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,
MikeMarch 23, 2020 at 7:19 pm #1195559Thank 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
March 24, 2020 at 12:32 pm #1196179Hi,
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,
MikeMarch 25, 2020 at 1:31 am #1197536Thank you!!
March 25, 2020 at 8:17 am #1197604 -
AuthorPosts
- You must be logged in to reply to this topic.