Viewing 30 results - 61 through 90 (of 103 total)
  • Author
    Search Results
  • #783467

    Hi,

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['facebook']['pattern'] = "http://kriesi.at";
    	$args['twitter']['pattern'] = "http://kriesi.at";
    	$args['gplus']['pattern'] = "http://kriesi.at";
    	$args['pinterest']['pattern'] = "http://kriesi.at";
    	return $args;
    }

    Best regards,
    Yigit

    #738123

    Hi jstonestreet!

    Thank you for using Enfold.

    This is possible but it will take a major modification in the includes > helper-social-media.php > avia_social_share_links class. The sharing section has a preset pattern and it can be modified, though limited, with the following filter.

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['pinterest']['pattern'] = "http://pinterest.com/pin/create/button/?url=[permalink]&description=[title]&media=[thumbnail]";
    	return $args;
    }

    By default, the “media” parameter will take the thumbnail or the featured image as its value. If you really need this feature, please hire a freelance developer or contact our partner, Codeable.

    // http://kriesi.at/contact/customization

    Regards,
    Ismael

    #734563

    Hey olofnaucler,

    Thank you for using Enfold.

    You can add more social media button by using the “avia_social_share_link_arguments” filter. Example here:

    // https://kriesi.at/support/topic/adding-whatsapp-button-on-social-share-buttons/#post-573570

    Best regards,
    Ismael

    Hey!

    Alright. Please open a new thread. If you want to adjust the pattern of the share icons, you can use the following filter.

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'masonry' );
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title] '.$thumb[0].'&url=[shortlink]';
    	return $args;
    }

    Best regards,
    Ismael

    #717594

    Hi!

    The image is not included in the “share pattern”. You can filter the pattern with the following code.

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'masonry' );
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title] '.$thumb[0].'&url=[shortlink]';
    	return $args;
    }

    // https://kriesi.at/support/topic/large-twitter-card-for-post-share-icon/#post-662746

    Best regards,
    Ismael

    #685477

    Hi!

    Thank you for the info.

    Please use the “avia_social_share_link_arguments” filter. Example here: https://kriesi.at/support/topic/social-share-problems/#post-581487

    Cheers!
    Ismael

    #677970

    Hi,

    1.) I’m sorry but I don’t quite understand this. And if possible, please create a single thread for each inquiry.

    avia_social_share_link_arguments is a good function, but the share icon fontello how to add child theme code?
    I can see no easy way to add or function. Social data and social sharing icons icons have not found a way.

    2.) Not at all. Use the icon font manager to upload new social icons. If you can provide the login details, we’ll add one of the social icons that you need. Note that we can only add icons available in the fontello.com site. http://kriesi.at/documentation/enfold/custom-social-icons/

    Best regards,
    Ismael

    #677880
    zcl
    Guest

    1.
    For example, the code should be written like this written language pack support it!
    If the language pack supports the wording that the background settings interface will be better

    
    $avia_config['color_sets'] = array(
        'header_color'      => 'Logo Area',
        'main_color'        => 'Main Content',
        'alternate_color'   => 'Alternate Content',
        'footer_color'      => 'Footer',
        'socket_color'      => 'Socket'
     );
    

    2.
    avia_social_share_link_arguments is a good function, but the share icon fontello how to add child theme code?
    I can see no easy way to add or function. Social data and social sharing icons icons have not found a way. Maybe I’m stupid.

    #677296

    Hi,

    Another problem is that two kinds of URL shows the same content, perhaps wordpress itself, perhaps the question topics, to find out.

    That is a default url structure of WordPress.

    This sentence can not be translated perfectly in a language pack.

    You have to modify the file and change the string manually.

    The third question is about sharing, I enfold use by the sub-theme of the way, I want to extend sharing capabilities, such as adding more in line with China’s local website to share channels.

    Use the “avia_social_share_link_arguments” filter to add more sharing icons. Example:

    https://kriesi.at/support/topic/xing-in-social-share/#post-585872

    https://kriesi.at/support/topic/adding-whatsapp-button-on-social-share-buttons/#post-573570

    Best regards,
    Ismael

    #662746

    Hi,

    Thank you for using Enfold. And we are very sorry for the delay.

    Please add this in the functions.php file to replace the shortlink with the actual page ur:

    add_filter('avia_social_share_link_replace_values', 'avia_social_share_link_replace_values_mod');
    function avia_social_share_link_replace_values_mod($replace) {
    	$replace['shortlink'] = get_permalink();
    	return $replace;
    }

    Unfortunately, you cannot apply the “twitter card” in the theme’s sharing patterns. You can only attach the featured image url:

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'masonry' );
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title] '.$thumb[0].'&url=[shortlink]';
    	return $args;
    }
    

    Best regards,
    Ismael

    #660726

    Hey!

    1. Enfold uses the shortlink version of the post so it uses less characters.
    2. Yoast description is not connected to the theme’s social sharing function by default.

    Luckily, the social sharing arguments can be modified by the user with the help of a filter, try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	global $post;
    	$yoast_desc = get_post_meta($post->ID, '_yoast_wpseo_metadesc', true);
    	$args['twitter'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=$yoast_desc&url=[permalink]");
    	return $args;
    }

    Cheers!
    Josue

    #644870

    Hey Itai,

    Try changing the code to:

    add_filter('avia_social_share_link_arguments', 'modify_pinterest_pattern', 10, 1);
    		function modify_pinterest_pattern($args)
    		{
    			$args['pinterest'] = array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/link/?url=[permalink]&description=[title]&image_url=[thumbnail]");
    			return $args;
    		}

    Best regards,
    Josue

    #642575

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    		add_filter('avia_social_share_link_arguments', 'modify_pinterest_pattern', 10, 1);
    		function modify_pinterest_pattern($args)
    		{
    			$args['pinterest'] = array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/link/?url=[permalink]&description=[title]&media=[thumbnail]");
    			return $args;
    		}

    Cheers!
    Josue

    #606849

    In reply to: Pinterest Share Button

    That’s interesting, you can change the pattern of the Pinterest share link with this code (functions.php):

    		add_filter('avia_social_share_link_arguments', 'modify_pinterest_pattern', 10, 1);
    		function modify_pinterest_pattern($args)
    		{
    			$args['pinterest'] = array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/link/?url=[permalink]&description=[title]&media=[thumbnail]");
    			return $args;
    		}
    
    #594208
    #585872

    In reply to: Xing in Social Share

    Hi 1webster!

    Thank you for using Enfold.

    Please replace the code with this:

    //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)
    {
    	$xing = array('xing' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url=[title]&url=[permalink]", 'label' => __("Teile auf Xing",'avia_framework')));
        $args = array_merge($xing, $args);
    	return $args;
    }

    Best regards,
    Ismael

    #584827

    Topic: Xing in Social Share

    in forum Enfold
    #582135

    In reply to: Custom title

    Hey!

    Where did you get the shortcode? Is it possible to get the value of the shortcode via custom field? https://codex.wordpress.org/Custom_Fields

    Please try this in the functions.php file:

    // modify social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$readtime = do_shortcode('[est_time]');
    	$args['linkedin']['pattern'] = 'http://linkedin.com/shareArticle?mini=true&title=[title]'.$readtime.'&url=[permalink]';
    	return $args;
    }

    The example below works on our installation but I’m not sure if it is going to work with the custom shortcode above:

    // modify social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$readtime = get_the_time(get_option('date_format'));
    	$args['linkedin']['pattern'] = 'http://linkedin.com/shareArticle?mini=true&title=[title]'.$readtime.'&url=[permalink]';
    	return $args;
    }

    Regards,
    Ismael

    #581487

    In reply to: Social Share problems

    Hi eviang!

    Thank you for using Enfold.

    The social share section has its own sharing pattern and the plugin’s settings won’t affect it. You can use the following filter in the functions.php file:

    // modify social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args) {
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title]%20@something&url=[shortlink]';
    	return $args;
    }

    EDIT: You have to modify the text query: “?text=[title]%20@something”

    The “[title]” is the title of the current post or page, the %20 is a space and the @something is the twitter handle if you want to include it or add any other text.

    Usage examples:

    https://kriesi.at/support/topic/share-button-twitter-handle-not-showing-when-people-are-sharing/#post-578267
    https://kriesi.at/support/topic/changing-words-on-share-function/#post-481864

    Cheers!
    Ismael

    #579747

    In reply to: Twitter handle

    Thanks for your reply and solution Josue

    but to clarify, as I am a bit blind when it comes to the layout and functions of the Dashboard area

    but should I copy and paste

    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    $args[‘twitter’] = array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://twitter.com/share?text=[title]&url=[shortlink]&via=USERNAME”);
    return $args;
    }

    into my Quick CSS window which is located under General settings. If so I already have the following code there.

    article span.fallback-post-type-icon {
    display: none;
    }
    .avia-content-grid-active .slide-image { display: none !important; }

    So should I place the new code in front of or below the existing?

    thanks once again for your help, cheers

    #579580

    In reply to: Twitter handle

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['twitter'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]&via=USERNAME");
    	return $args;
    }

    Cheers!
    Josue

    #579132

    In reply to: Custom title

    Hey koraytastan!

    Thank you for using Enfold.

    1.) Are you referring to the social share links or the social media icons in the top bar? If it is the latter, you can modify the includes > helper-social-media.php file. Look for this code around line 83 which contains the social media icon markup including the title attribute:

    	$html .= "<a {$blank} href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon'])." title='".ucfirst($icon['social_icon'])."'><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>";
    

    If it is the social share section in the posts, use the “avia_social_share_link_arguments” filter. Example here: https://kriesi.at/support/topic/share-button-twitter-handle-not-showing-when-people-are-sharing/#post-578267

    2.) Use the “avia_social_share_link_arguments” in order to change the share section pattern. https://kriesi.at/support/topic/share-button-twitter-handle-not-showing-when-people-are-sharing/#post-578267

    Regards,
    Ismael

    Hi!

    Thank you for the link. Please add this in the functions.php file:

    // modify social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title]%20@something&url=[shortlink]';
    	return $args;
    }
    

    Change @something to your actual twitter handle.

    Regards,
    Ismael

    #573570

    Hey ambia01!

    Thank you for using Enfold.

    We modified the code in the functions.php file a bit. Please check it here: http://eventsquared.london/uncategorized/test/

    // Register new icon as a theme icon
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons) {
    	$icons['whatsapp']	 = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800');
    	return $icons;
    }
    
    //Adjust icons
    add_filter('avia_filter_social_icons', 'avia_filter_social_icons_mod', 10, 1);
    function avia_filter_social_icons_mod($icons) {
    	$icons['Whatsapp'] = 'whatsapp';
    	return $icons;
    }
    
    //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)
    {
    	$args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://whatsapp.com/share?text=[title]&url=[permalink]", 'label' => __("Share on Whatsapp",'avia_framework'));
    	return $args;
    }

    Cheers!
    Ismael

    Hey!

    Please add this in the functions.php file:

    // social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['mail']['label'] = __("Enquire by Mail",'avia_framework');
    	return $args;
    }
    
    

    Best regards,
    Ismael

    #553628

    In reply to: ADD WHATSAPP ICON

    Hello Josue.

    I followed the instructions. It seems that it works in my “Primary site”, but not where I want (in a subfolder, when I have the site I’m building).

    My functions.php created in enfold-child:

    <?php
    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style )
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘whatsapp’] = array( ‘font’ =>’whatsapp-font-icon’, ‘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[‘Whatsapp’] = ‘whatsapp’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_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(
    ‘whatsapp’ => array(
    “encode”=>true, “encode_urls”=>false, “pattern” => “whatsapp://send?text=[title]-[permalink]”
    )
    );

    return array_merge($new_array, $args);
    }
    ?>

    This returns a “500” error.

    Maybe a multisite issue?

    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);
    ?>
    
    #534613

    In reply to: Whatapp Button

    Hey!

    Please add this in the functions.php file:

    // Register new icon as a theme icon\
    function avia_add_custom_icon($icons) {
    	$icons['whatsapp']	 = array( 'font' =>'whatsapp', 'icon' => 'ue800');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 50, 1);
    
    // Register new social share
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "whatsapp://send?text=[title]");
    	return $args;
    }

    Upload the whatsapp social icon from fontello. Go to the Enfold > Import / Export panel then click the fontello link. Search for the whatsapp icon, select it then look for the input field next to the “wrench” icon. Type in “whatsapp”. Download the font then upload it in the iconfont manager.

    Regards,
    Ismael

    #532969

    In reply to: ADD WHATSAPP ICON

    Add Whatsapp to the social share section:
    1. Upload this zip file in Enfold > Import/Export > Icon Font Manager.
    2. If you have a child theme functions.php add this at the bottom:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['whatsapp']	 = array( 'font' =>'whatsapp-font-icon', '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['Whatsapp'] = 'whatsapp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_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(
    		'whatsapp' => array(
    			"encode"=>true, "encode_urls"=>false, "pattern" => "whatsapp://send?text=[title]-[permalink]"
    		)
    	);
    
    	return array_merge($new_array, $args);
    }

    3. If you don’t have a child theme functions.php, install this plugin
    and add the code from step 2 into the functions.php added by the plugin.
    4. Add this to your Quick CSS to change the whatsapp-button color.

    /* Whatsapp button color */
    #top #wrap_all .av-social-link-whatsapp:hover a {
    color: #fff;
    background-color: #3bb528;
    }
    #532949

    In reply to: ADD WHATSAPP ICON

    Hey!

    Change the //Add items on the social share section code to:

    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(
    		'whatsapp' => array(
    			"encode"=>true, "encode_urls"=>false, "pattern" => "whatsapp://send?text=[title]-[permalink]"
    		)
    	);
    
    	return array_merge($new_array, $args);
    }

    Regards,
    Josue

Viewing 30 results - 61 through 90 (of 103 total)