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

    other 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);
    }

    #1290273

    Hi marcobe,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1290985

    Website is on my local computer prefer to work all time in local before put online, not solution?

    #1291508

    Hi 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,
    Nikko

    #1292080

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

    #1292418

    Hi 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,
    Nikko

    #1292442

    when 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.

    btw: https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options

    scroll a little to “Using images or non-Fontello icons” if you like to use an image on that – and not a font-icon

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