Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #629241

    Hi, I want to show a tripadvisor icon on header. My site is

    I follow this steps:
    1) create a font icon in fontello
    2) put into Functions this code:
    // Register new icon as a theme 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);

    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons[‘Trip Advisor’] = ‘tripadvisor’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    2) import this icon in enfold general panel (ive check it the code of icon insert it an icon in a post, and look ok)
    3) Assign the url in Social Profiles

    But the ICON DONT SHOW IN HEADER

    #629249

    Hi carmycurly!

    I changed the code to following one

    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['tripadvisoricon']	 = array( 'font' =>'tripadvisor', '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['Trip Advisor'] = 'tripadvisoricon';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Please review your website now.

    If you would like to adjust the colors, please use following code in Quick CSS field in Enfold theme options > General Styling tab

    .av-social-link-tripadvisoricon a { color: black; background: red; }

    Best regards,
    Yigit

    #629262

    ITS OK THANKS!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Trip Advisor in top’ is closed to new replies.