
-
AuthorPosts
-
September 20, 2017 at 6:10 pm #854519
Hi,
We would like to have in the footer or header the Tripadvisor, and a link to our reviews page, as the rest of our social media networks.Is that possible? How can we do that?
Thanks,
Dani,September 20, 2017 at 6:35 pm #854528Hi Dani,
Please refer to this post – http://kriesi.at/documentation/enfold/custom-social-icons/
Cheers!
YigitSeptember 21, 2017 at 9:01 am #854660Hi,
Thanks for your answer Yigit.
I’ve tried to follow the steps but I did not succeed.
That’s what I did:
1.-Went to \wp-content\themes\enfold\functions.php and add, just below
“if(isset($avia_config[‘use_child_theme_functions_only’])) return;” the next codefunction avia_add_custom_social_icon($icons) {
$icons[‘Tripadvisor’] = ‘tripadvisor’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);(Basically just changed Kriesi by Tripadvisor to help understanding in the future.)
2.- Went to Enfold->General Styles-> Quick CSS and added the rest of the code:
#top #wrap_all .av-social-link-kriesi a:before{
content: “”;
width: 20px;
height: 20px;
display: inline-block;
vertical-align: middle;
background: url(http://kidnappedinbcn.hl345.dinaserver.com/wp-content/uploads/2017/09/TripAdvisor-logo.png) no-repeat center center;
background-size: contain;
}After this our website does not show anything new on our footer.
What am I doing wrong?
Thanks!September 21, 2017 at 9:29 am #854668Following my previous post:
I tried to use fontello fonts and I got the option two choose Tripadvisor in the list of social media networsks.
However no Icon is displayed next to the others.
Basically I just changed from the reference code “icon-name” to “tripadvisor” as I saw this was the name for that icon.
Here I attach the complete code: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[‘Tripadvisor’] = ‘tripadvisor’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);Thanks again,
Dani.September 21, 2017 at 11:49 am #854753Hi Dani,
Have you tried adding new social network link in Enfold theme options > Social Profiles? If you have, please create a temporary admin login and post it here privately so we can look into it.
Best regards,
YigitSeptember 21, 2017 at 1:01 pm #854806Yes, that’s what we did.
And as you will see we got the option to add Tripadvisor Icon, but nothing is displayed.
We added the Fontello Icon following the steps on the video.September 21, 2017 at 1:09 pm #854813Hi,
I went to Enfold theme options, switched language to English, added social link and custom CSS code in English version. Please review your website :)
Best regards,
YigitSeptember 21, 2017 at 1:28 pm #854837Hei!
It worked fine! I’ve just changed the icon to match the style.
Now I will try to set the hoover effect.Thanks for your help,
Dani.September 21, 2017 at 1:44 pm #854845Hi,
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 :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Tripadvisor as social network icon’ is closed to new replies.