Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1109549
    Pollito69
    Participant

    Hello,

    I use Ethos 1 and woocommerce and I love it. Earlier you helped me to change the button text that is in the post slider area. Great.

    Now I noticed that I need to do the same to the section where the posts are. Please see the attachment.
    The (top) post slider button text is fixed and displays “Learn More” but the section below where all the posts are still display “View Post” when the user hovers mouse over the image. I would like to change the “View Post” to “Learn More”. Please see the attachment. Sorry about my bad drawing abilities.

    I assume that I need to put a new JavaScript in my Customize –> Custom area? Could you help me with the script I need, please.

    Here is the link to my site:
    http://staging.uniquegiftsandart.com/wp-admin/

    Thank you!

    #1109784
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To resolve this issue, please insert this following code in your child theme’s functions.php file.

    // Change "View Post" to "Learn More"
    // =============================================================================
    function change_viewpost_text($translated) { 
      $translated = str_ireplace('View Post', 'Learn More', $translated);
      return $translated; 
    }
    add_filter('gettext', 'change_viewpost_text' );
    // =============================================================================

    This code will change all the occurence of “View Post” to “Learn More”.
    We would loved to know if this has work for you. Thank you.

    #1109843
    Pollito69
    Participant

    Yes, it is working. Thank you!

    #1109857
    Rad
    Moderator

    You’re welcome!

  • <script> jQuery(function($){ $("#no-reply-1109549 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>