Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #886573
    jjwikselaar
    Participant

    Hi,

    I’ve seen more conversations about this topic, but I don’t get it working.
    On the page http://www.vanbeusekomvastgoed.nl/aanbod/
    I have posts with a featured image. If you hover over it is shows the text ‘View Post’.
    I’d like to change (or remove) this text.

    Thanks in advance!
    JJ

    #886986
    Thai
    Moderator

    Hi There,

    To change this text, please add the following code under functions.php file in your child theme:

    add_filter('gettext', 'x_translate_text' , 20, 3);
    function x_translate_text ( $translated_text, $text, $domain ) {
    
    $translation = array (
    'View Post' => 'Your new text'
    );
    
    if( isset( $translation[$text] ) ) {
    return $translation[$text];
    }
    
    return $translated_text;
    
    }

    To remove it, please add the following CSS under Customizer > Custom > Global CSS:

    a.entry-thumb .view {
        display: none;
    }

    Hope it helps 🙂

    #888884
    jjwikselaar
    Participant

    That works perfect!
    Thanks a lot!

    Cheers,
    JJ

    #889486
    Rupok
    Member

    You are welcome!

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

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