Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #569729

    Hello,

    I am trying to add Yelp & TripAdvisor icons to our Social profiles.

    I created the Fontello file and loaded into the Enfold options. I can add the Yelp & Trip Advisor icons within a page using the icons object.

    I do not see the icons available within WordPress > Enfold > Social profiles.

    I added the following code to my functions.php

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

    What else do I need to do to make these new icons available in the Social Profiles?

    Thanks!

    • This topic was modified 9 years, 6 months ago by HGOLDS35.
    #570349

    bump

    #571322

    Hey!

    refrain from bumping into your own thread, as it pushes it behind in our queue and marks it as answered and then we can’t provide a faster reply to you.

    You are using an old version of the theme, so please upgrade to Enfold 3.4.7 and let us know if you still need help afterwards.

    Cheers!
    Andy

    #571585

    Our template has been upgraded to 3.4.7 and I added the custom code to the functions.php.

    I still cannot use the Yelp & Trip Advisor icons within the Social Profiles.

    What now?

    Thanks!

    • This reply was modified 9 years, 6 months ago by HGOLDS35.
    #571716

    Hey!

    I moved your code higher in functions.php file and corrected it so it looks like following one

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

    please review your website now

    Cheers!
    Yigit

    #571724

    Thanks for the help, that solved our issue!

    #571726

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom Social Profiles for Yelp & TripAdvisor’ is closed to new replies.