• Resolved stanleyuroy11

    (@stanleyuroy11)


    Hi,

    I am wondering if I can be able to edit the strings without any coding knowledge required. I would love to change every string with the words “Submit Job”, “Company Details”, CV, “View Jobs” “Jobs Dashboard”, “Submit Resume” etc to match the industry I am in. So I could have something; “Submit A Gig”, Change all the words relating to Job to become Gigs. Change company details to “Enterprise Details”, Change Job Type to “Gig Type”, change submit Resume to “Submit Application”, – these are simply examples.

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes, there is a really helpful code snippet for this in their documentation (included snippet below). You can add additional $translated lines to the snippet, as below, to translate multiple strings, and you would add this code snippet to your child theme’s functions.php file or (if you prefer or don’t have a child theme) use the Code Snippets plugin:

    add_filter('gettext', 'translate_text');
    functiontranslate_text($translated) {
    $translated = str_ireplace('Submit Jobs', 'Submit a Gig', $translated);
    $translated = str_ireplace('Company Details', 'Enterprise Details', $translated);
    return $translated;
    }

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey, @stanleyuroy11 !

    I noticed @hastibe was able to answer your questions correctly. Thanks @hastibe! ?? .

    If you have any other questions, @stanleyuroy11 , please let us know!

    Hi, i have the same problem and tried the code snippet but didnt work (i may did it wrong?)

    i want to replace the SPAN “All Regions” in this page https://aube-interim.com/offres-emploi

    Could you guys help me ? thank you!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hello @tomwallen,

    Have you tried using the snippet linked above and replacing the Submit Jobs', 'Submit a Gig' and 'Company Details', 'Enterprise Details'bits with All Regions and whatever you want to display instead?

    Let us know if it works!

    Hi @erania-pinnera, thanks for the fast reply !

    yep i tried this snippet in the child theme folder in functions.php > https://ibb.co/fQWcK31
    But it returns a critical error. May i write it in a bad way?

    Thank you!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @tomwallen

    It looks like there is actually a syntax error in the snippet shared above:

    functiontranslate_text($translated)

    it should instead read:

    function translate_text($translated)

    Once you make that adjustment, the critical error should go away.

    Hi @lastsplash

    Oh yes, this…
    Seems to work perfectly fine now! Thank you a lot !

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @tomwallen,

    Seems to work perfectly fine now! Thank you a lot!

    That’s great! Happy we could help! I’ll go ahead and mark this thread as resolved. Should you have any further inquiries or concerns, please don’t hesitate to open a new thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Editing Strings’ is closed to new replies.