
-
AuthorPosts
-
January 22, 2016 at 3:30 am #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.
January 22, 2016 at 10:04 pm #570349bump
January 25, 2016 at 1:26 pm #571322Hey!
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!
AndyJanuary 25, 2016 at 8:08 pm #571585Our 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.
January 26, 2016 at 12:37 am #571716Hey!
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!
YigitJanuary 26, 2016 at 12:43 am #571724Thanks for the help, that solved our issue!
January 26, 2016 at 12:44 am #571726Hi!
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 -
This topic was modified 9 years, 6 months ago by
-
AuthorPosts
- The topic ‘Custom Social Profiles for Yelp & TripAdvisor’ is closed to new replies.