-
AuthorPosts
-
July 6, 2018 at 6:04 pm #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?
July 6, 2018 at 8:24 pm #982228Hey pddcoms,
Unfortunately this is not a feature of the theme. A plugin is the best option.
Best regards,
Jordan ShannonJuly 6, 2018 at 8:25 pm #982229Hi,
Or perhaps, a search and replace in the database itself may help:
Best regards,
Jordan ShannonJuly 9, 2018 at 11:13 am #983006This 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 6 years, 4 months ago by pddcoms.
July 9, 2018 at 4:37 pm #983193Hi,
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,
BasilisJuly 9, 2018 at 9:17 pm #983395Ok, i wiil ask him but why if change something in main redactor it will not change when i switch to elfold redactor?
July 10, 2018 at 1:07 pm #983638Hi 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,
VictoriaJuly 11, 2018 at 11:53 pm #984393Well… there is no way to unify the data? is there any way to replace the data on the site if I use your editor?
July 12, 2018 at 11:15 am #984619Hi 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,
VictoriaJuly 12, 2018 at 11:37 am #984631maybe 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 endby the way you can even replace with html expressions:
'Lorem' => '<abbr title="#">Lorem</abbr>',
PS: this will work case-sensitve
July 12, 2018 at 12:29 pm #984661Guenni007 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?
July 12, 2018 at 12:39 pm #984671but 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.
July 12, 2018 at 12:46 pm #984677How 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.
July 12, 2018 at 2:26 pm #984774click on my nick or avatar
July 12, 2018 at 2:27 pm #984775by the way – this is a very fast way to correct bad translations too
July 12, 2018 at 2:40 pm #984780Ok. close the topic
July 12, 2018 at 8:10 pm #984884Hi,
Thank you
Best regards,
Basilis -
AuthorPosts
- The topic ‘How to change text in all posts’ is closed to new replies.