Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #460141

    Hi Kriesi,

    How can I change the order of the social share buttons at the bottom of the blogs?
    Because actually I want to appear the linkedin button in front of the pinterest button.

    Thanks in advance.

    Greets Mark

    #460351

    Hey Mark_goessens!

    Try changing the order on lines 145 – 156 in /enfold/includes/helper-social-media.php.

    $default_arguments = array
    (
    	'facebook' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.facebook.com/sharer.php?u=[permalink]&t=[title]"),
    	'twitter' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]"),
    	'gplus' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://plus.google.com/share?url=[permalink]" , 'label' => __("Share on Google+",'avia_framework')),
    	'pinterest' => array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/button/?url=[permalink]&description=[title]&media=[thumbnail]"),
    	'linkedin' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://linkedin.com/shareArticle?mini=true&title=[title]&url=[permalink]"),
    	'tumblr' 	=> array("encode"=>true, "encode_urls"=>true, "pattern" => "http://www.tumblr.com/share/link?url=[permalink]&name=[title]&description=[excerpt]"),
    	'vk' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://vk.com/share.php?url=[permalink]"),
    	'reddit' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://reddit.com/submit?url=[permalink]&title=[title]"),
    	'mail' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "mailto:?subject=[title]&body=[permalink]", 'label' => __("Share by Mail",'avia_framework') ),
    );
    

    Cheers!
    Elliott

    #461736

    Thanks Elliott, that works!

    I found a plugin which will place a share button for Whatsapp. I would like to place it in the same container like the other social share buttons.
    I have a shortcode and a PHP code:

    Shortcode:
    [whatsapp url="http://peadig.com/wordpress-plugins/whatsapp-share-button/" title="Check this out!"]

    PHP code:
    <?php echo do_shortcode('[whatsapp]'); ?>

    I suppose it’s possible to place the PHP code in the /enfold/includes/helper-social-media.php file.
    But I don’t know exactly how to do this.

    Can you help me with that?

    Greets Mark

    #462052

    Hey!

    It would be best to ask the plugin author about that. Perhaps they have instructions for adding it in manually to a theme.

    Regards,
    Andy

    #493353

    Hi,

    I’m sorry for my late response. Thanks for your reply.
    This problem is solved, so you can close this thread.

    Greets Mark

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Social share buttons order’ is closed to new replies.