Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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?

    #692722

    Hey 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,
    Yigit

    #693546

    Login below

    #693576

    Hi,

    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,
    Vinay

    #693993

    Ahoy 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?

    #694607

    Hi,

    I added the code to functions.php file. Please review your website now

    Best regards,
    Yigit

    #695315

    Hi,

    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 ?

    #695426

    Hi,

    Exactly. But please firstly remove it from your parent theme’s functions.php file or your website will crash.

    Best regards,
    Yigit

    #695768

    Ahoy –

    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

    #695770

    Hey!

    Can we activate your child theme to look into the issue?

    Best regards,
    Yigit

    #695772

    Sure just don’t mess anything up…hahaa

    do you want the ftp login?

    #695773

    Hey!

    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,
    Yigit

    #695776

    Ahhh- 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

    #695778

    Hi!

    Exactly ;D
    Please add following code to Quick CSS

    #top #wrap_all .av-social-link-snapchat:hover a {
        background: yellow;
        color: white;
    }

    Cheers!
    Yigit

    #695782

    Thanks Yigit! You rock!

    #695783

    Hey!

    You are welcome T, always happy to help :)

    Cheers!
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Add Snapchat icon to top social bar’ is closed to new replies.