Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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
    tag title for tripadvisor icon

    #395047

    Hey 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!
    Ismael

    #395237

    Thanks 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?
    No icon tripadvisor on fontello

    • This reply was modified 9 years, 9 months ago by niguli.
    #395658

    Hi!

    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,
    Ismael

    #395671

    Hi 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?

    #395685

    in 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, 9 months ago by niguli.
    #396350

    Hi!

    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,
    Ismael

    #396368
    This reply has been marked as private.
    #396877

    Hey!

    Please check it now. We had to change the “vimeo” part of the css inside the Quick CSS field to “Tripadvisor”.

    Best regards,
    Ismael

    #396901

    That’s great Ismael, great support as always :)

    Gonna study your modifications for the future ;)

    #396906

    Hey!

    Glad we could help you.

    Enjoy the theme.

    Best regards,
    Günter

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘edit tag TITLE on social image profile changed by myself’ is closed to new replies.