-
AuthorPosts
-
September 7, 2017 at 8:34 pm #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);
September 8, 2017 at 6:55 pm #849686Hey Black-Shadow,
Can you please elaborate on the changes you would like to make?
Best regards,
YigitSeptember 9, 2017 at 4:45 am #849810I 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(); } ?>
September 9, 2017 at 3:56 pm #849955Hi,
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,
YigitSeptember 10, 2017 at 2:42 pm #850117You 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.September 11, 2017 at 4:52 pm #850580Hi Black-Shadow,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaSeptember 11, 2017 at 5:45 pm #850608reply
September 13, 2017 at 4:52 am #851333Hi,
Please install the plugin that @yigit suggested then use the following shortcode anywhere in the page or template.
[zeno_font_resizer]
Best regards,
IsmaelSeptember 13, 2017 at 9:21 am #851454Very 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,
September 13, 2017 at 9:22 am #851455A solution with functions.php is better when it works :)
September 14, 2017 at 8:21 am #851899Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.