Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #849218

    Hello,

    i already read this http://kriesi.at/documentation/enfold/custom-social-icons/
    And it works very well.

    Now i need for this new icon a new function not simply a link.

    I want add a snippet

     if (function_exists('example')) {
            example();
        }

    What i must paste in functions.php ???
    Is this the right way?:

    add_filter('avia_social_share_link_arguments', 'avia_social_share_link_newfunction', 10, 1);
    if (function_exists('example')) {
            example();
        }
    

    This is what i already have there:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['Ändere Schriftgröße']	 = array( 'font' =>'fontello', 'icon' => 'uf088');
    	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['Change Fontsize'] = 'Ändere Schriftgröße';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    #849686

    Hey Black-Shadow,

    Can you please elaborate on the changes you would like to make?

    Best regards,
    Yigit

    #849810

    I want to add this to the place of social icons in menu area.

    <?php
        if (function_exists('zeno_font_resizer_place')) {
            zeno_font_resizer_place();
        }
    ?>
    #849955

    Hi,

    Please install this plugin as well – https://github.com/MPolleke/zeno-font-resizer-shortcode and use shortcodes in Phone Info field in Enfold theme options > Header > Extra Elements.

    Best regards,
    Yigit

    #850117

    You know that this Extra Elements displayed in top bar??
    I want to have this in social area inside the main navigation. Also this solution not work, i need a custom icon with the function of the plugin.

    #850580

    Hi Black-Shadow,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #850608

    reply

    #851333

    Hi,

    Please install the plugin that @yigit suggested then use the following shortcode anywhere in the page or template.

    [zeno_font_resizer]
    

    Best regards,
    Ismael

    #851454

    Very good but no good answer on my question.

    In which file i must use it. I search in header.php etc. but not found the area with social icons in navigation.

    Best regards,

    #851455

    A solution with functions.php is better when it works :)

    #851899

    Hi,

    Are you trying to add the resizer beside the social icons? You can’t use the social icon filter for that. Use this filter to insert the “resizer” inside the header area.

    add_action( 'ava_before_bottom_main_menu', 'ava_before_bottom_main_menu_mod' );
    function ava_before_bottom_main_menu_mod() {
    	echo do_shortcode("[zeno_font_resizer]");
    }

    Use css codes to adjust the position of the “resizer”.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.