Tagged: share this entry, social share link
-
AuthorPosts
-
January 18, 2021 at 10:35 pm #1273490
Hi, Enfold Expert,
At the bottom of every post, there is “Share This Entry” actually i want to convert this to “Share This Template”
So, which file “Share This Entry” has been located so that i modify it to “Share This Template” also mention line number
Thanks and hope to see your reply
- This topic was modified 3 years, 10 months ago by hamzakhankhan.
January 18, 2021 at 11:43 pm #1273503Hey Hafeez Ullah,
Try adding this to the theme functions.php file:
function modify_share_title(){ return "Share This Template"; } add_filter('avia_social_share_title', 'modify_share_title');
Best regards,
Jordan ShannonJanuary 19, 2021 at 5:27 am #1273556As i told above, i want to edit the exact file where the text “Share this Entry” exists. I don’t want to add additional coding in function.php file instead i will simply rename the text “Share this Entry” to “Share This Template”
Please, tell me which php has this text command so i just edit that file.. i hope you got my point.
January 19, 2021 at 6:14 am #1273565it is in helper-social-media.php line 331:
( /enfold/includes/helper-social-media.php )$this->title = $title !== false ? $title : __( 'Share this entry', 'avia_framework' );
This line also prepares the possibility of translation in the language files.
and you can find that filter on the same file on line 519:
$this->html .= apply_filters( 'avia_social_share_title', $this->title , $this->args );
btw. there is another place on social_share.php
(/enfold/config-templatebuilder/avia-shortcodes/social_share) line: 160
________
I for one consider an entry via the filter in the child-theme functions.php much more useful than editing an original file and uploading it as a child-theme version.January 20, 2021 at 5:27 am #1273898Hi,
@hamzakhankhan: Please try to follow the instructions that @Guenni007 provided above. We recommend using the avia_social_share_title filter as @Jordan recommended above, instead of modifying the template file directly.Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.