-
AuthorPosts
-
January 22, 2016 at 10:27 am #569876
High,
I want to adjust the hover label that currently reads ” Share by E-mail” on the e-mail social icons see http://www.peter-test3.co.uk/art-portfolio-item/distant-farm-buildings/, to read “Enquire by E-mail” I have gone into the helper-social-media.php file and adjusted line 155 to read this but does not work can you help me.
function __construct($args = array(), $options = false, $title = false)
{
$default_arguments = array
(
‘facebook’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “http://www.facebook.com/sharer.php?u=%5Bpermalink%5D&t=%5Btitle%5D”),
‘twitter’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://twitter.com/share?text=%5Btitle%5D&url=%5Bshortlink%5D”),
‘gplus’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://plus.google.com/share?url=%5Bpermalink%5D” , ‘label’ => __(“Share on Google+”,’avia_framework’)),
‘pinterest’ => array(“encode”=>true, “encode_urls”=>true, “pattern” => “http://pinterest.com/pin/create/button/?url=%5Bpermalink%5D&description=%5Btitle%5D&media=%5Bthumbnail%5D”),
‘linkedin’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “http://linkedin.com/shareArticle?mini=true&title=%5Btitle%5D&url=%5Bpermalink%5D”),
‘tumblr’ => array(“encode”=>true, “encode_urls”=>true, “pattern” => “http://www.tumblr.com/share/link?url=%5Bpermalink%5D&name=%5Btitle%5D&description=%5Bexcerpt%5D”),
‘vk’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “http://vk.com/share.php?url=%5Bpermalink%5D”),
‘reddit’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “http://reddit.com/submit?url=%5Bpermalink%5D&title=%5Btitle%5D”),
‘mail’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => “mailto:?subject=[title]&body=[permalink]”, ‘label’ => __(“Enquire by Mail“,’avia_framework’) ),
);- This topic was modified 8 years, 10 months ago by condonpb.
January 22, 2016 at 3:06 pm #570115Hi condonpb!
use a plugin like Poedit or Loco Translate for it.
Best regards,
AndyJanuary 23, 2016 at 7:36 am #570473Andy,
I dont want to translate text all I want to do is change the label of a pop up from “Share my” to “Enquire by” it seems a bit over kill to use a plugin to modify some text on a label can you tell me how to modify this label on the e-mail share please.
PeteJanuary 25, 2016 at 4:29 am #571020Hey!
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,
IsmaelJanuary 26, 2016 at 10:36 am #572000Many Thanks That has done it
January 27, 2016 at 7:19 am #572630 -
AuthorPosts
- You must be logged in to reply to this topic.