Tagged: fontello
-
AuthorPosts
-
February 11, 2015 at 5:20 pm #394484
funny question… Take a look here in the header bar to the social profiles. I changed the Vimeo icon and replaced it with a TripAdvisor icon (made by myself), because I need it for my B&B and I will never use Vimeo. The problem is that now on mousing over the icon, on Chrome appears the box named “Vimeo” because it refers in the code to the tag title (title=”VIMEO”) for the image. Where can I edit it and change to “TripAdvisor” ? If possibile I also need to edit the tag ALT… thanks in advance
February 12, 2015 at 3:04 pm #395047Hey Nicola!
Thank you for using Enfold.
Instead of using the vimeo social icon, use this filter on functions.php to add your own social icon:
function avia_add_custom_icon($icons) { $icons['tripadvisor'] = array( 'font' =>'fontello', 'icon' => 'ue800'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Tripadvisor'] = 'tripadvisor'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Look for the trip advisor icon on fontello.com then upload it using the Enfold > Import/Export > Iconfont Manager. Select the Trip Advisor icon inside the Social Profiles panel.
Cheers!
IsmaelFebruary 12, 2015 at 6:49 pm #395237Thanks Ismael,
I’m still not very experienced in the use of fontello. If I look for an icon “trip advisor” on fontello.com tripadvisor do not get results. how can I proceed?
- This reply was modified 9 years, 10 months ago by niguli.
February 13, 2015 at 1:03 pm #395658Hi!
Alright. Please ignore the suggestion above then add this to the functions.php file:
add_filter('avia_filter_social_icons', 'avia_social_icons_title'); function avia_social_icons_title($icons) { $i = 0; foreach ($icons as $icon) { if($icon['social_icon'] == 'vimeo') { $icons[$i] = array( 'social_icon' => 'trip advisor', 'social_icon_link' => $icon['social_icon_link'] ); break; } $i++; } return $icons; }
Best regards,
IsmaelFebruary 13, 2015 at 1:17 pm #395671Hi I added your code…
A couple of questions:
1) can i copy the file function.php into my enfold-child folder? My aim is not to loose any changes apported with further Enfold updates….
2) after added you code, the title tag is ok (As you can see I did a little modification ->Tripadvisor ), but I lost my customized icon, and it became a pencil icon. So I think your first suggest was the best and I tried this way:I search for an SVG icon for Tripadvisor here: https://www.iconfinder.com/search/?q=tripadvisor&type=vector and dowloaded this one: https://www.iconfinder.com/icons/415887/download/svg/128. Then I imported it in fontello.com and downloaded the zip file. After I imported it in enfold panel the way you suggested. I refreshed the page Social Profiles (and added the filter you suggested me at the end of the file function.php but the new icon didn’t appear.
Can you help me?February 13, 2015 at 1:30 pm #395685in Quick CSS i added this code:
#top .social_bookmarks_vimeo { background: url(https://www.lecarabattole.com/wp-content/mieimmagini/tripadvisor.png) no-repeat center !important; } #top .social_bookmarks_vimeo:hover a { background: url(https://www.lecarabattole.com/wp-content/mieimmagini/tripadvisor-hover.png) no-repeat center !important; }
- This reply was modified 9 years, 10 months ago by niguli.
February 15, 2015 at 12:29 pm #396350Hi!
Please post the login details here. We would like to check it. Yes, you can add the code on the child theme’s function.php file.
Best regards,
IsmaelFebruary 15, 2015 at 1:20 pm #396368This reply has been marked as private.February 16, 2015 at 6:17 pm #396877Hey!
Please check it now. We had to change the “vimeo” part of the css inside the Quick CSS field to “Tripadvisor”.
Best regards,
IsmaelFebruary 16, 2015 at 6:33 pm #396901That’s great Ismael, great support as always :)
Gonna study your modifications for the future ;)
February 16, 2015 at 6:37 pm #396906 -
AuthorPosts
- The topic ‘edit tag TITLE on social image profile changed by myself’ is closed to new replies.