-
AuthorPosts
-
March 23, 2021 at 5:14 pm #1289954
i put this code in function.php but it doesn’t work.
it does not show the possibility of inserting telegram in the admin – enfold sectionother solutions to insert the social telegram icon?
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘telegram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8b7’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);
//Add items on the social share section
add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
function avia_add_social_share_link_arguments($args) {
$new_array = array(
‘telegram’ => array(
“encode”=>true, “encode_urls”=>false, “pattern” => “https://t.me://send?text=%5Btitle%5D-%5Bpermalink%5D”
)
);return array_merge($new_array, $args);
}March 25, 2021 at 4:53 am #1290273Hi marcobe,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoMarch 28, 2021 at 11:48 pm #1290985Website is on my local computer prefer to work all time in local before put online, not solution?
March 31, 2021 at 9:03 am #1291508Hi marcobe,
I see, can you try this solution:
// Register Telegram icon as a theme icon function avia_add_custom_icon($icons) { $icons['telegram'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue8b7'); 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['Telegram'] = 'telegram'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
NikkoApril 3, 2021 at 11:57 am #1292080Not work in Enfold section “social profile” if i add new social menu not show telegram
For add my telegram channel .
Is correct add to function.php?April 5, 2021 at 5:40 am #1292418Hi marcobe,
Yes, it’s correct to add it in functions.php (child theme)
I have already tested this code and it works with WordPress 5.7 and Enfold 4.8.1.Best regards,
NikkoApril 5, 2021 at 9:42 am #1292442when you open that drop down list to choose the telegram option – it is not placed in alphabetical order – it is at the bottom of that list.
scroll a little to “Using images or non-Fontello icons” if you like to use an image on that – and not a font-icon
-
AuthorPosts
- You must be logged in to reply to this topic.