-
AuthorPosts
-
September 27, 2016 at 4:09 am #692044
Ahoy, I’m trying to add a snapchat icon to the main menu bar at the top of my website where my other social icons are.
I have been following this thread.
Here is the social icon code
https://www.dropbox.com/s/czn4it8hnnw55gb/Screenshot%202016-09-26%2019.07.49.png?dl=0
How do I add this to the main bar?
September 28, 2016 at 3:10 pm #692722Hey mcraig77,
If referring to this thread – http://kriesi.at/documentation/enfold/custom-social-icons/ did not help, please create a temporary admin login and post it here privately. Prior to that, please make sure that you have imported icon font that contains Snapchat icon – http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
Best regards,
YigitSeptember 30, 2016 at 7:39 am #693546Login below
September 30, 2016 at 9:48 am #693576Hi,
It appears there is a conflict in your functions.php file and the site is showing an error when I try to add the snapchat icon for you. To resolve this issue please access wp-content\themes\enfold\functions.php file and remove the below code from the bottom of the file using a text editor like sublime text and re-upload the file to the same location.
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['icon_name'] = array( 'font' =>'fontello', 'icon' => 'uF2AC'); 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);
If you still have any issue please provide us a temporary FTP access (via private data field)?
Best regards,
VinaySeptember 30, 2016 at 7:02 pm #693993Ahoy There,
I went ahead and deleted that code you added. I noticed sometimes this happens with code added to the functions.php via snippets. Do you know why that is?
On that note how can I add this code without braking the theme?
I have a child theme installed on the theme. Should I try and put that code you provided in there?
October 3, 2016 at 1:57 pm #694607Hi,
I added the code to functions.php file. Please review your website now
Best regards,
YigitOctober 5, 2016 at 6:56 am #695315Hi,
I cant have it in the functions.php seeing when the theme automatically updates it will delete. Right?
on that note do I just add this code to my child theme functions.php ?
October 5, 2016 at 12:41 pm #695426Hi,
Exactly. But please firstly remove it from your parent theme’s functions.php file or your website will crash.
Best regards,
YigitOctober 5, 2016 at 9:47 pm #695768Ahoy –
So i deleted the custom functions from my main theme and added it to the child theme. An icon shows but is it a pencil – not snapchat..
Please advise
October 5, 2016 at 9:58 pm #695770October 5, 2016 at 9:59 pm #695772Sure just don’t mess anything up…hahaa
do you want the ftp login?
October 5, 2016 at 10:02 pm #695773Hey!
Landing page is the same so it is not visible to your visitors however you might need to adjust color settings. I activated child theme and Snapchat logo shows up fine? :)
Regards,
YigitOctober 5, 2016 at 10:06 pm #695776Ahhh- so when you add a child theme your activate it… haha, didn’t know that!
I also need to add a rollover elements for the snapchat icons… should I ask through here or should I open a new thread?
T
October 5, 2016 at 10:11 pm #695778Hi!
Exactly ;D
Please add following code to Quick CSS#top #wrap_all .av-social-link-snapchat:hover a { background: yellow; color: white; }
Cheers!
YigitOctober 5, 2016 at 10:14 pm #695782Thanks Yigit! You rock!
October 5, 2016 at 10:17 pm #695783 -
AuthorPosts
- The topic ‘Add Snapchat icon to top social bar’ is closed to new replies.