Forum Replies Created
-
AuthorPosts
-
Hi Mike,
I tried to add your function to our functions.php but the web refuses to load.
By the other hand I’ve thought that we are using WMPL to make a multilingual site and it would be more difficult to redirect this button
according to the actual language.Perhaps it’s easier to hide the mobile cart button and then adding a floating button for each language home page.
What do you think?Thanks.
Hei!
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.Yes, 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.Following 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.Hi,
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! -
AuthorPosts