Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #982156

    Hi. i need to change some text on site. i use plugin Better Search Replace but it change text only in main redactor. What i need to do?

    #982228

    Hey pddcoms,

    Unfortunately this is not a feature of the theme. A plugin is the best option.

    Best regards,
    Jordan Shannon

    #982229

    Hi,

    Or perhaps, a search and replace in the database itself may help:

    https://www.wpbeginner.com/wp-tutorials/ (Purchase code hidden if logged out)(Purchase code hidden if logged out) -your-wordpress-database/

    Best regards,
    Jordan Shannon

    #983006

    This pugin works good but it change text only when i use main redactor of the theme. if use full enfold redactor and save. all text will not change(((. I need to understand how to solve this problem it’s very important. If the text in the database has changed, from where it is in the editor.

    • This reply was modified 2 months, 2 weeks ago by  pddcoms.
    #983193

    Hi,

    I am afraid you’ll need to contact the plugin author for more info about the issue. Making third-party plugins compatible with the theme is unfortunately beyond the support scope we offer. Sorry for that!

    Best regards,
    Basilis

    #983395

    Ok, i wiil ask him but why if change something in main redactor it will not change when i switch to elfold redactor?

    #983638

    Hi pddcoms,

    If your page is built with the Advanced Layout Builder you should not switch back and forth. You should use one or the other.

    Best regards,
    Victoria

    #984393

    Well… there is no way to unify the data? is there any way to replace the data on the site if I use your editor?

    #984619

    Hi pddcoms,

    Manually or by writing the parser for it. Either way, it is way out of the scope of the support that we provide here. You might want to hire a freelancer to do it for you.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #984631

    maybe this could help you – put it in your functions.php of your child-theme:

    // Word replacement
    function replace_text($word){
        $changings = array(
    	// Word to replace => New text - comma separated
            'Grundlagen' => 'Basis',
    	'dolor' => 'something else'
        );
        $word = str_replace(array_keys($changings), $changings, $word);
        return $word;
    }
    
    // WP filter for the content and the Exerpt (content excerpt)
    
    add_filter('the_content', 'replace_text');
    add_filter('the_excerpt', 'replace_text');

    you see how it works ?
    this is what you like to replace: 'Grundlagen' => 'Basis',
    if you like to replace more these lines are separated by commata – the last instruction does not need a comma at the end

    by the way you can even replace with html expressions:

    'Lorem' => '<abbr title="#">Lorem</abbr>',
    

    PS: this will work case-sensitve

    #984661

    Guenni007 Thak’s for your help. It’s work’s! I saw this method, but it’s strangely that there is no way to change text by using plugin.

    By the way, i think you know PHP well )) i saw your tips in other topics. May I keep in touch with you if i have some easy questions?

    #984671

    but yes of course – but

    I prefer it of course if it runs here over the forum, because I do not always have time to deal directly with the questions. Furthermore, the advantage of swarm intelligence should not be underestimated.

    #984677

    How can I write to you? because here i can’t do it. I will not bother you with constant questions, I promise)) i only see your web site with contacts) I need to teach php and i will.

    #984774

    click on my nick or avatar

    #984775

    by the way – this is a very fast way to correct bad translations too

    #984780

    Ok. close the topic

    #984884

    Hi,

    Thank you

    Best regards,
    Basilis

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

The topic ‘How to change text in all posts’ is closed to new replies.