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

    Hey 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 Shannon

    #1273556

    @Jordan

    As 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.

    #1273565

    it 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.

    #1273898

    Hi,


    @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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.