Tagged: social icons
-
AuthorPosts
-
February 11, 2018 at 5:55 pm #910771
I would like to add a social media icon for Houzz at the top of the page. I can create the icon, but can you please let me know how I can add the icon and link to the top of the page?
Thank you!
.February 11, 2018 at 7:17 pm #910782Hey reelhomes2017,
Try going to Enfold Theme Options > Social Profiles > Your social profiles and click the green plus sign, then choose your new profile.Best regards,
MikeFebruary 11, 2018 at 10:47 pm #910806Thanks for your response! Yes, I tried that, but the social media option (Houzz) I want isn’t included in the ones provided in the drop down list and I didn’t see an option to add your own type of social media icon.
Best Regards,
JanisFebruary 12, 2018 at 11:36 am #911031Hi,
Please follow this solution for Adding Custom Social Icons to the Theme Options
After you download the Fontello icon, this is an example of what your code should look like:function avia_add_custom_icon($icons) { $icons['houzz'] = array( 'font' =>'houzz', 'icon' => 'ue800'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Your new icon may appear at the bottom of the list.
Best regards,
MikeFebruary 12, 2018 at 9:10 pm #911356Thank you, I want to verify that I am doing this correctly:
Step 1: Add this css to Enfold/General Styling/Quick CSS –
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘icon_name’] = 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[‘Icon Label’] = ‘icon_name’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);Step 2: Go to Enfold/Import/Export and click on the Upload/Select Fontello Zip Font?
Step 3: Add the code in the paragraph below after the following line in the Functions.php file if(isset($avia_config[‘use_child_theme_functions_only’])) return;
function avia_add_custom_icon($icons) {
$icons[‘houzz’] = array( ‘font’ =>’houzz’, ‘icon’ => ‘ue800’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);function avia_add_custom_social_icon($icons) {
$icons[‘Houzz’] = ‘houzz’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);Step 4: At this point, I should see an Icon that I can use in the drop-down menu of the Enfold/Social Profiles section?
Thanks for your assistance.
February 13, 2018 at 4:37 am #911486Hi,
I have adjust the code here and tested on my localhost
Step 1: add this code to your functions.php
under: if(isset($avia_config[‘use_child_theme_functions_only’])) return;function avia_add_custom_icon($icons) { $icons['houzz'] = array( 'font' =>'fontello', 'icon' => 'uf27c'); 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['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Step 2: Download the Houzz font from http://fontello.com/ (use the fontawesome one) and upload to Enfold/Import/Export and click on the Upload/Select Fontello Zip Font
Step 3: At this point, you should see the Icon that you can use in the drop-down menu of the Enfold/Social Profiles section.Best regards,
MikeFebruary 18, 2018 at 11:31 pm #914061This reply has been marked as private.February 19, 2018 at 5:25 am #914127Hi,
Thanks for the feedback. Could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardFebruary 19, 2018 at 3:52 pm #914322This reply has been marked as private.February 19, 2018 at 8:52 pm #914527Hi,
Yes, the image cant work, that is normal.
Have you loaded a custom font from the Options Panel?Best regards,
BasilisFebruary 20, 2018 at 3:05 pm #914850I uploaded a zip file with what I thought had the correct font. I uploaded it as per Steps 2 and 3 above.
Thanks
February 20, 2018 at 5:06 pm #914895Hi,
This is now fixed, I have replaced this code:
function avia_add_custom_icon($icons) { $icons['houzz'] = array( 'font' =>'fontello', 'icon' => 'uf27c'); 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['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
to:
function avia_add_custom_icon($icons) { $icons['houzz'] = array( 'font' =>'houzz', 'icon' => 'uf27c'); 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['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Let us know if you need further assistance :)
Best regards,
Nikko- This reply was modified 6 years, 10 months ago by Nikko.
February 20, 2018 at 7:29 pm #914965Thank you so much for your help. We are all set. It looks great!
February 20, 2018 at 7:45 pm #914968I’m sorry, I have one other request from the client. Is there a way we can get the Houzz logo at the top to highlight to a green color upon mouseover? The other links all highlight to a color.
Many Thanks!
February 21, 2018 at 3:23 am #915155Hi,
I added this code in the General Styling > Quick CSS field:#top #wrap_all .av-social-link-houzz:hover a{ color:#fff; background-color: #9fae37; }
It seems to be working now please check.
Best regards,
MikeFebruary 21, 2018 at 3:48 am #915168Perfect, that’s just the right shade of green too. Thank you, we are all set!
February 21, 2018 at 4:13 am #915183Hi,
Glad to hear that it’s all set. :) Thanks for using Enfold and have a great day :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Add a new social icon to top of page’ is closed to new replies.