Title: Change Text?
Last modified: August 31, 2016

---

# Change Text?

 *  Resolved [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/)
 * Hi!
 * How can I change the text so that when the plugin gets updated it doesn’t override
   what I’ve changed?
 * For example I don’t want it to say “Guestbook Entry” etc…
 * Thanks!
    Matt
 * [https://wordpress.org/plugins/gwolle-gb/](https://wordpress.org/plugins/gwolle-gb/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/change-text-18/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/change-text-18/page/2/?output_format=md)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104264)
 * There are filters that you can use.
    Which text at which places would you want
   to be changed?
 *  Thread Starter [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104271)
 * Thanks for the response, and can I say this plugin is excellent!
 * Ideally I want to change some of the text from frontend/write.php, including:
 * >> Write a new entry.
    Guestbook entry
 * I also want to remove the * from the required fields.
 * ALSO: Another request, in the widget can you ask it to show a random entry, rather
   than the latest?
 * Thanks!
    Matt
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104389)
 * This will change the text of the button:
 *     ```
       function my_gwolle_gb_button($html) {
               $old = '&raquo; Write a new entry.';
               $new = 'New String';
               $html = str_replace( $old, $new, $html );
               //var_dump($html);
               return $html;
       }
       add_filter( 'gwolle_gb_button', 'my_gwolle_gb_button' );
       ```
   
 *     ```
       function my_gwolle_gb_write($html) {
               $old = 'Guestbook entry';
               $new = 'New String';
               $html = str_replace( $old, $new, $html );
   
               $old = '\*';
               $new = '';
               $html = str_replace( $old, $new, $html );
   
               //var_dump($html);
               return $html;
       }
       add_filter( 'gwolle_gb_write', 'my_gwolle_gb_write' );
       ```
   
 * Not sure about this last function where the * gets replaced. Please test.
    You
   can place this code in functions.php of your theme or in your own plugin. I will
   think about the feature for the widget.
 *  Plugin Contributor [Rhialto](https://wordpress.org/support/users/rhialto/)
 * (@rhialto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104461)
 * I’m curious and since I just began looking at this guestbook, is there a PO file
   too for easy editing of original strings or it’s hardcoded?
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104462)
 * Translations are done at GlotPress:
    [https://translate.wordpress.org/projects/wp-plugins/gwolle-gb](https://translate.wordpress.org/projects/wp-plugins/gwolle-gb)
   If you have a PO file it will get overwritten with updates, so that isn’t really
   a viable option.
 *  Plugin Contributor [Rhialto](https://wordpress.org/support/users/rhialto/)
 * (@rhialto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104463)
 * Then how to edit original english strings? I don’t know yet if I will need this
   but this button was a good example so was wondering if one need to use a function
   each time.
 * Also I plan to to my own french because french translators from France use more
   english than we do here in Canada sometimes so if I take the GlotPress route 
   and work on French Canada, all future updates will have the correct translation?
   On the other hand, if I do it on my side I will need to keep a PO file safe to
   put back after each update?
 * If I ever decide to work on French Canada, can I use POedit to do it locally 
   then upload the .po file or I absolutly need to edit at GlotPress? I would prefer
   to work offline and upload once completed and tested.
 *  Plugin Contributor [Rhialto](https://wordpress.org/support/users/rhialto/)
 * (@rhialto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104466)
 * I’ll add another example: **Admin Reply by:**
 * Since I’m the only admin I would like to change that string to **Rhialto’s reply:**
   and get rid of the name after colon (:)
 * I understand I can’t change it if it’s hardcoded or I will lost the change with
   next update, still not sure it’s editable in a PO file as I don’t see one. So
   what are my option, do I need to create a function based on the one above?
 * Thanks!
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104468)
 * The strings are hardcoded in the PHP code. The filters are there for this type
   of customizing.
    The Settings page is already crowded enough already…
 *  Plugin Contributor [Rhialto](https://wordpress.org/support/users/rhialto/)
 * (@rhialto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104470)
 * I thought I would be good and quite understand the filter thing but it’s not 
   working so I must be missing something:
 *     ```
       function my_gwolle_gb_entry_read_add_after($html) {
               $old = 'Admin Reply:';
               $new = 'Test';
               $html = str_replace( $old, $new, $html );
   
               //var_dump($html);
               return $html;
       }
       add_filter( 'gwolle_gb_entry_read_add_after', 'my_gwolle_gb_entry_read_add_after' );
       ```
   
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104473)
 * Hi, for the list you probably want to use the filter:
    ‘gwolle_gb_entries_read’
 *  Plugin Contributor [Rhialto](https://wordpress.org/support/users/rhialto/)
 * (@rhialto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104474)
 * Weird, pretty sure I tried it and it wasn’t working but now it works…
 * Thanks!
 *  [zergix](https://wordpress.org/support/users/zergix/)
 * (@zergix)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104489)
 * Hello,
    I have installed your plugin, very nice, compliments! I have a question…
   I would not use it to a “Guestbook” in Spanish I have called it “Pizarra de Mensajes
   y Foro” and then I would like to change 4 written if is possible.. the 3 written
   in the spanish version are “Dejar una firma en el libro” (button), “Firma en 
   el libro:” (outside the form), “Firma en el libro” (inside the form) and “¡Firmar!”;
   I would like to change the first three with “Ingresa tu mensaje” and the last
   one with “Enviar” it is possible to made this changes? many thanks!
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104490)
 * Hi, you can use the PHP filters that are listed above. You can replace text with
   them.
 *  [zergix](https://wordpress.org/support/users/zergix/)
 * (@zergix)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104491)
 * I can not find the code to be replaced … can you tell me please where is it?
   
   I will need to change not only the button but also other parts of the text that
   I have indicated.. could you tell me please if it is possible to do to… thanks!
 *  [zergix](https://wordpress.org/support/users/zergix/)
 * (@zergix)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/change-text-18/#post-7104492)
 * sorry! I read with more attention what you wrote and I understand 🙂
    I have 
   inserted the codes provided in the files function.php of theme and I solved 🙂
   sorry but I will like to made question… why is not possible just changed the 
   gwolle-gb-es_ES.po files? already many thanks!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/change-text-18/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/change-text-18/page/2/?output_format=md)

The topic ‘Change Text?’ is closed to new replies.

 * ![](https://ps.w.org/gwolle-gb/assets/icon-256x256.png?rev=1114688)
 * [Gwolle Guestbook](https://wordpress.org/plugins/gwolle-gb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gwolle-gb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gwolle-gb/)
 * [Active Topics](https://wordpress.org/support/plugin/gwolle-gb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gwolle-gb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gwolle-gb/reviews/)

 * 16 replies
 * 4 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/change-text-18/page/2/#post-7104493)
 * Status: resolved