Viewing 30 results - 1 through 30 (of 36 total)
  • Author
    Search Results
  • Hey Akiko,

    Thank you for the inquiry.

    We can use the avf_social_icons_options and avf_default_icons filters in the functions.php file to add a new social icon option in the existing list and associate a custom font icon to it. Usage example can be found in the following threads.

    // https://kriesi.at/support/topic/enfold-add-multiple-social-profile-icons/
    // https://kriesi.at/support/topic/custom-social-media-icon-in-the-socket/

    This an example of the snippet.

    // WIEBO - Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['weibo']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	$icons['qq']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	$icons['wechat']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	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['Weibo'] = 'weibo';
    	$icons['QQ'] = 'qq';
    	$icons['WeChat'] = 'wechat';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    

    Add the snippet in the functions.php file and define the new icon after this line in the avf_social_icons_options filter.

    $icons['WeChat'] = 'wechat';
    

    To associate a font icon to the new social icon, just follow the pattern in the avf_default_icons filter. This code defines the font icon that we have to use for the wechat social icon.

    $icons['wechat']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); 
    

    Best regards,
    Ismael

    #1209012

    Following up on Nikko’s hook, I found this thread and so here is the code you can add to the child theme functions.php so it doesn’t break with theme updates. This code is for multiple icons so edit as necessary (also, probably best to upload a custom font with the additional icons rather than overwriting the installed font as I did.)

    // Houzz - Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['houzz']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue92d');
     	$icons['qq']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'uf1d6');
     	$icons['wechat']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'uf1d7');
    	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['Houzz'] = 'houzz';
     	$icons['QQ'] = 'qq';
     	$icons['WeChat'] = 'wechat';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    #1188328
    aliciapotts
    Participant

    Hi,
    The content in my columns is not aligning to the top even though they are set at equal height and aligned to top.
    I tried a bit of custom CSS that I saw on another thread but it didn’t work.
    Here is the page https://www.steedfitness.com.au/contact
    The problem is just under the contact form where I have put three headings about WeChat, Insta and FB. I would like these 3 headings to be in line with each other.

    Please let me know how I can fix this. Thank you for your help.
    Alicia

    #1147299

    In reply to: Change featured images

    Thanks a lot! It almost looks like I want now, but it seems to be a slightly different background color around the image compared to the background color on the page. Can it have to do with the code that we added previously to make the width 100%:

    .avia-content-slider .slide-image img {
        object-fit: cover;
        width: 100%;
    }

    From the screenshot above you can also see that currently there is a problem with different size on the round images on mobile. To solve it, I was thinking about to remove that code and change the two versions of the featured image to round and transparent png versions:
    https://www.guttogjente.no/wp-content/uploads/2019/10/blueLG.png
    https://www.guttogjente.no/wp-content/uploads/2019/10/darkLG.png
    Do you think that will work if I bulk replace the featured images? I would also like to change the display on mobile on the blog sections on two other pages, https://www.guttogjente.no/ and https://www.guttogjente.no/spm-og-svar/

    #1144226

    In reply to: info Box Icon Wechat

    Hey Chao93,

    Refer to the following:

    https://kriesi.at/support/topic/adding-wechat-icon/

    Best regards,
    Jordan Shannon

    #1144212

    Topic: info Box Icon Wechat

    in forum Enfold
    Chao93
    Participant

    Hello everyone,
    I would like to ask if exist the wechat Icon in the ICON BOX, because I cannot find it.
    In case will you add these feature?
    Thank you

    #1132485
    guttogjente
    Participant

    I have a white padding around the dark featured image thumbnail that I would like to remove so the picture don’t seem to have a different width than the white below. I have a lot of pages using these same featured images. Should I replace the image on FTP with the same picture with the same name in a wider version?

    #1131240

    Thanks, Nikko! You are awesome! Appreciate a lot:) That solved it! However, when I tested it now, I discovered that when I submit the form on the front page https://www.guttogjente.no/on cellphone the reply message from the form is not displayed like it should, instead the screen view is scrolled below this message so it is only visible if the user scroll up again. Do you know how to fix that? I can not ask the person who made the code, because the company changed. I see that the last lines of the script is:

    <?php if($_POST && $_POST['gform_submit'] == 1): ?>
            jQuery("html, body").animate({ scrollTop: 1100 }, "slow");
            <?php endif; ?>

    If I remove those lines, I need to scroll down below the header to display the reply on desktop, because the form returns me the top of the page.

    #972633

    In reply to: Edit Themes

    Hi Basilis,
    Before we update to wordpress4.9.6, enfold4.4.1, For example, we add the following contents in “Enfold Child: Theme Functions (functions.php)”:
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘wechat’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue801’);
    $icons[‘tencent-weibo’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue802’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    Then, click”update file”, added content is saved and working properly. But now, we update to wordpress4.9.6, enfold4.4.1, click ”update file”, a message appears:
    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”
    Added content (or, just delete some previously added content.) cannot be saved. (we have updated to php7.0, and the added content should be no grammatical errors, because they can add normally in cPanel>functions.php. )

    Best regards,
    xuzj

    #918784

    also the skype and wechat icons are not showing up on the front end

    here is the shortcode

    [av_font_icon icon='ue854' font='entypo-fontello' size='20px'][/av_font_icon] 65.8808.3808

    [av_font_icon icon='ue90d' font='entypo-fontello' size='20px'][/av_font_icon] spadeconsult

    [av_font_icon icon='uf232' font='entypo-fontello' size='20px'][/av_font_icon] 65.8808.3808

    [av_font_icon icon='uf1d7' font='entypo-fontello' size='20px'][/av_font_icon] spadeconsult

    I have uploaded all 4 of my icons (with Iconfont Manager) and only the first 2 showing up

    honest345
    Participant

    Hey!
    I added chinese social sites (eg.Weibo & Wechat) at my site.
    Because the Wechat icon highlighted in pic doesn’t have a direct link.so I linked the icon to a QR image file for visitors to scan with their Wechat app. As a result, it opens alone in the tab.I’m aware of the icons are symbols instead of images, but I can only think of using the lightbox to display the image. Is there any way to do that?Please help me.

    #782379
    honest345
    Participant

    at first,i will say,i’m Chinese,i use the enfold in China.as you know,in China,we can’t connect youtube,google,and so on.so i want to change them into what i can visit.
    eg.
    is there any way to change “google maps” into “baidu maps”?any way to use baidu share?wechat social profiles
    please help me,thank you

    • This topic was modified 7 years ago by honest345.
    #740901

    Awesome! Gracias. So with a few tweaks, this is the code that worked for me.

    // WIEBO - Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['weibo']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue92b');
    	$icons['qq']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'uf1d6');
    	$icons['wechat']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'uf1d7');
    	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['Weibo'] = 'weibo';
    	$icons['QQ'] = 'qq';
    	$icons['WeChat'] = 'wechat';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    #739694

    Hi Julie!

    Thank you for using Enfold.

    Please use the following code.

    // WIEBO - Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['weibo']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	$icons['qq']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	$icons['wechat']	 = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
    	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['Weibo'] = 'weibo';
    	$icons['QQ'] = 'qq';
    	$icons['WeChat'] = 'wechat';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Adjust the “icon” value.

    Regards,
    Ismael

    #737972
    welswebmaster
    Participant

    I’ve successfully added one social profile icon using this documentation article: http://kriesi.at/documentation/enfold/custom-social-icons/ so here’s my code so far:

    // WIEBO - Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['icon_name']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue92b');
    	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['Weibo'] = 'icon_name';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    And now I’d like to add more icons. How would that code look?

    Font: fontawesomeregular
    Label: QQ
    Icon: uf1d6

    Font: fontawesomeregular
    Label: WeChat
    Icon: uf1d7

    #710584
    theplattrust
    Participant

    Hi!
    I know there is another thread that is very similar to this problem, but even after following the steps in there to upload a fontello icon I am unable to select it in the social profiles page to add to my header.

    As instructed I have added this code:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['icon_name']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    	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['Icon Label'] = 'icon_name';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    but I am not sure what i need to change to specify the WeChat favicon?
    Any help is appreciated!

    #673801

    hi~Thanks for your reply
    I add these code in the functions file of the child theme,but it doesn’t work.
    Please have a look:

    <?php

    /*
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘icon_wechat’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘uF1D7’);
    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[‘Icon Label’] = ‘icon_wechat’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
    */

    And I would like I can choose this social share app in the blog layout->”Share links at the bottom of your blog post ”
    How can I make it?

    #669193
    keulen
    Participant

    Hi, I would like to add another social app icon button and link,the app like Weibo ,Wechat and so on(China social app).Any way to do this? Thanks

    Got it. Hopefully this will help anyone else who also would like to add more than just one custom social media icon. Follow the tutorial linked above, and make your list of icons in functions.php like this (at least this is what worked for me by trial and error and guessing and hoping).

    // Add new icons as options for social icons.
    function avia_add_custom_social_icon($icons) {
    	$icons['Baidu'] = 'baidu';
    	$icons['Lenovo User Community'] = 'luc';
    	$icons['Wechat'] = 'wechat';
    	$icons['Weibo'] = 'weibo';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    This topic can be marked as resolved.

    #575556

    In reply to: Adding WeChat Icon

    Hey!

    We modified the code a bit and placed it below line 17 of the functions.php file. You can now enable the WeChat social icon in the Social Profiles panel. Please create a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Ismael

    #570309

    In reply to: Adding WeChat Icon

    Hey theepicurienne!

    Please follow the steps in the link below to add your custom icons and add to your social profile in Enfold > Social Profiles

    Add WeChat profile link and save the settings.

    http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/

    If you still have any issue please get back to us with admin login details as private content message.

    Regards,
    Vinay

    #569825

    Topic: Adding WeChat Icon

    in forum Enfold
    theepicurienne
    Participant

    Hi. We would like to add the WeChat icon to the top right header of our site. Can you help?

    ibolee
    Participant

    hi:

    social-sharing-add-another-service’s code and custom-social-icons’s code can not use it?

    last time , i have 3 problem Been helped engineer,thanks very much again~

    link is:

    https://kriesi.at/support/topic/how-to-addingchange-social-icons-and-share-links%EF%BC%9F/

    so,my code is,this code is in my child theme fauctions.php,does not work

    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
        $icons['wechat']	 = array( 'font' =>'wechat', 'icon' => 'ue821');
    	$icons['weibo']		 = array( 'font' =>'weibo', 'icon' => 'ue826');
    	$icons['baidu']		 = array( 'font' =>'baidu', 'icon' => 'ue822');
        $icons['qq']		 = array( 'font' =>'qq', 'icon' => 'ue824');
        $icons['renren']		 = array( 'font' =>'renren', 'icon' => 'ue827');
        $icons['qweibo']		 = array( 'font' =>'qweibo', 'icon' => 'ue823');
    	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['wechat']	 = 'wechat';
    	$icons['weibo']		 = 'weibo';
    	$icons['baidu']		 = 'baidu';
        $icons['qq']		 = 'qq';
        $icons['renren']		 = 'renren';
        $icons['qweibo']		 = 'qweibo';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    //在社交图标选项中新增选项20151128-Register new icon as a theme icon
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['wechat'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=weixin&url=[permalink]&title=[title]&uid=1561992");
        $args['weibo'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=tsina&url=[permalink]&title=[title]&uid=1561992");
        $args['baidu'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=baidu&url=[permalink]&title=[title]&uid=1561992");
        $args['qq'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=cqq&url=[permalink]&title=[title]&uid=1561992");
        $args['renren'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=renren&url=[permalink]&title=[title]&uid=1561992");
        $args['qweibo'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.jiathis.com/send/?webid=tqq&url=[permalink]&title=[title]&uid=1561992");
    	return $args;
    }
    function avia_add_custom_icon($icons) {
    	$icons['wechat']	 = array( 'font' =>'wechat', 'icon' => 'ue821');
    	$icons['weibo']		 = array( 'font' =>'weibo', 'icon' => 'ue826');
    	$icons['baidu']		 = array( 'font' =>'baidu', 'icon' => 'ue822');
        $icons['qq']		 = array( 'font' =>'qq', 'icon' => 'ue824');
        $icons['renren']		 = array( 'font' =>'renren', 'icon' => 'ue827');
        $icons['qweibo']		 = array( 'font' =>'qweibo', 'icon' => 'ue823');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    ?>
    

    Hi Yigit,

    Thanks for your reply.

    For question 1, I have added this code
    * {font-family: "Microsoft YaHei" !important;}

    For question 2, I do it according your vedio but failed. It showed this hint: “Couldn’t add the font because the server didn’t respond. Please reload the page, then try again”.

    I have tried many time with Enfold 3.4.2 and 4.3.1. But all showed the above hint. I checked someone have solved this problem by FTP way. But it marked as private. https://kriesi.at/support/topic/custom-icons-in-iconboxes/

    For question 3, How to change the Social Icon and Blog Share Icon? You konw our Social media is Weibo, QQ, Wechat….. So I need to change it. It is very important to me.

    Please help me solve it.

    TAICO
    Participant

    Hi This is Bobo,

    I have used the Enfold theme in our Chinese website and I don’t the code. So please make it clear to how to change it. Thanks a lot

    (1) How to use “Microsoft Yahei” font for entire site. All the font in the site be showed with Microsoft Yahei. You know we can’t open Google in China.

    I have searched the Topic: https://kriesi.at/support/topic/change-of-font-family/ . And I have try to update it. But I really don’t know how to do it?

    (2) How to change the Social Icon and Blog Share Icon? You konw our Social media is Weibo, QQ, Wechat….. So I need to change it.

    (3) How to Custom Icons in Iconboxes? I can’t upload the ” Fontello Font ZIP”. And checked the Topic https://kriesi.at/support/topic/custom-icons-in-iconboxes/ But there is no detailed answer how to do it. Can you make it clear?

    Thanks a lot again

    #524228
    wedesignshanghai
    Participant

    Hi,

    I’m testing some customization before start designing a website and I have 2 issues:

    1. Social Icons (Wechat, Weibo, QQ & RenRen)
    Already added the code on my child theme and uploaded fontello icons.
    Things seem in place, but Icons don’t display. If you check the sample page http://www.excentric-bcn.com/kellen / you’ll see that the links are actually there (roll over on left side of the top bar displays the name and is linkable) but cannot see the icons.
    Icons are there, I added an Icon box to check on landing page (wechat Icon tester).
    Any suggestions?

    2. In order to solve the google block issues in china, I added a plugin that consists on a simple code.
    Do you think this will work? Would be better to add this code to the functions.php of the child theme?
    Not sure how to test it…

    Here’s the plugin developer site and the code, it may be useful for future requests:
    http://www.soulteary.com/2014/06/08/replace-google-fonts.html

    /**
    * Plugin Name: Replace Google Fonts
    * Plugin URI: http://www.soulteary.com/2014/06/08/replace-google-fonts.html
    * Description: Use Qihoo 360 Open Fonts Service to replace Google’s.
    * Author: soulteary
    * Author URI: http://www.soulteary.com/
    * Version: 1.0
    * License: GPL
    */

    /**
    * Silence is golden
    */
    if (!defined(‘ABSPATH’)) exit;

    class Replace_Google_Fonts
    {

    /**
    * init Hook
    *
    */
    public function __construct()
    {
    add_filter(‘style_loader_tag’, array($this, ‘ohMyFont’), 1000, 1);
    }

    /**
    * Use Qihoo 360 Open Fonts Service to replace Google’s.
    *
    * @param $text
    * @return mixed
    */
    public function ohMyFont($text)
    {
    return str_replace(‘//fonts.googleapis.com/’, ‘//fonts.useso.com/’, $text);
    }
    }

    /**
    * bootstrap
    */
    new Replace_Google_Fonts;

    Thanks!!!!

    #510496

    In reply to: Social Profiles

    Hey!

    Did you manage to fix it? i’m now seeing the wechat icon at the top right.

    Cheers!
    Josue

    #509905

    In reply to: Social Profiles

    Hi!
    I already upload the icons I want to add in my social profile,

    View post on imgur.com


    but when I applied the code you gave me to make them available on the social profiles:
    ——-
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘icon_name’] = array( ‘font’ =>’wechat’, ‘icon’ => ‘ue803’);
    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[‘Icon Label’] = ‘renren’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    —–
    something goes wrong, basically doesn’t work
    just this new option appears “icon label” but no icon, no name..

    View post on imgur.com

    I’m adding here the customize codes and the icons names, in case I’m replacing the names wrong?

    View post on imgur.com

    View post on imgur.com

    can you take a look please?
    thank you in advance!!!!

    Delia

    #504578

    Topic: Social Profiles

    in forum Enfold
    libelum
    Participant

    Hi,
    I would like to add a social profile for “WECHAT” but does not appear in the list
    how can we solve that?

    Thank you!
    Delia

Viewing 30 results - 1 through 30 (of 36 total)