Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #269738

    Hello,
    I’m using a child theme, what is the best way for me to change “Share this entry” to just “Share this”? I found the text in ‘helper-social-media.php’ but I am unsure whether I delete the word “entry” from helper-social-media.php and re-save the whole (slightly modified) helper-social-media.php page to my child theme /includes folder, or if this minor change is something that can be done by adding a filter or some other code in the child theme’s functions.php?

    If we have minor little changes such as this, do we make the change and save the entire page to our child theme for every item?

    #269770

    Hey Riavon!

    Try using this plugin to change specific strings:
    https://wordpress.org/plugins/codestyling-localization/

    Cheers!
    Josue

    #269774

    Thanks Josue! But… I’m not sure that this is what I need. My question isn’t about localization, or translation, and it doesn’t have anything to do with languages. My question was asking you how best to go about making a specific (minor) change to the front end via an Enfold child theme.

    #269775

    I see, sorry for the confusion. Try adding this to the theme functions.php file:

    function modify_share_title(){
    	return "Share this";
    }
    add_filter('avia_social_share_title', 'modify_share_title');
    

    Cheers!
    Josue

    #269777

    Thanks! That IS exactly what I was asking about :) I understand now that we’re to modify things like this with php code placed in the functions.php file. However, sadly this code you gave me doesn’t work to make the change I am trying to make. I will see if I can figure this out on my own, or if you happen to know why it isn’t working and what I can try, that would be super.

    #269778

    Hi!

    That works on my end (child theme), where exactly are you putting the code?

    Cheers!
    Josue

    #269781

    I put it at the end of my child theme’s functions.php. I’ve successfully done that for a couple of other items as well, and they work just fine.

    Here is all that is in my child theme functions.php file right now:

    add_theme_support('avia_template_builder_custom_css');
    
    add_filter('avf_postgrid_excerpt_length','avf_increase_postgrid_excerpt_length', 10, 1);
    function avf_increase_postgrid_excerpt_length($prepare_excerpt) { return 120; }
    
    function modify_share_title(){
    	return "Share this";
    }
    
    add_filter('avia_social_share_title', 'modify_share_title');
    #269783

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #269788
    This reply has been marked as private.
    #269795

    Hi!

    Done:
    http://mythemetester.com/fringe-addiction-messenger-bags/

    I had to fix something in the parent theme (missing avia_social_share_title filter in /includes/helper-social-media.php), maybe that file wasn’t uploaded correctly.

    Regards,
    Josue

    #269835

    Wonderful, thank you so much! :)

    #269837

    You are welcome, glad we could help :)

    Regards,
    
Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change "Share this entry" to just "Share this"’ is closed to new replies.