Change front-end text


Home Forums Front End PM PRO Change front-end text

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22939
    Ronnie Houston
    Participant

    Hello, how do I change the text on the front-end, for example: When starting a new message under attachments it reads :”Add more file”… How can I change this to read “add more files”?

    Thanks

    #22945
    Shamim Hasan
    Keymaster

    You can use gettext filter.
    Add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'gettext', function( $translated_text, $text, $domain ){
        if ( 'front-end-pm' == $domain && 'Add more file' == $text ){
            $translated_text = 'add more files';
        }
        return $translated_text;
    }, 20, 3 );
    
    #22947
    Ronnie Houston
    Participant

    Awesome, thank you for your quick response.

    #22950
    Ronnie Houston
    Participant

    Worked perfectly definitely giving this plugin 5 stars..

    #43000
    SteveMTNO
    Participant

    thanks, worked great!

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.