Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #620759

    Hi guys, please give me a hand on this, I have no idea where to paste the code for add social icon. I have done as 5 different attempts, and place it where you put it, the page breaks (http://kriesi.at/documentation/enfold/custom-social-icons/)
    My website is http://www.rvarq.com
    Right now I have in the Enfold Child folder Functions.php:

    <?php
    /*
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    
    }
    */
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons['houzz']	 = array( 'font' =>'houzz', 'icon' => 'ue800');
    return $icons;
    
    }
    
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['houzz'] = 'houzz';
    return $icons;
    
    }
    // remove img title
    add_action('wp_footer', 'ava_custom_script_title');
    function ava_custom_script_title(){
    ?>
    <script type="text/javascript">
    (function($) {
        $('img').removeAttr('title');
        var a = function() {
    		$('.avia-gallery-thumb a').each(function() {
    			$(this).removeAttr('title');
    		});
    	}
    
        a();
    })(jQuery);
    </script>
    <?php
    }
    #620762

    Hi nicolasweh!

    Sure we will help you.. please let us know a bit more information where did you get the above code from and what are you trying to achieve with it?

    If you are trying to add extra social icons into enfold theme you can add the code provided in the link below in Appearance > Editor > functions.php

    Regards,
    Vinay

    #620795

    hehe, I’ve no idea where it came from, that must have almost 3 years there, since 2013 September – Version 2.2.
    So, I’ve delete it all, I’ve copy the code and all works great now :)
    Thanks. Nicolás

    #620853

    Hey!

    Glad it’s sorted :)

    Please feel free to get in touch with us if you need any help.

    Thank you for using Enfold :)

    Cheers!
    Vinay

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘line where to put the code’ is closed to new replies.