Title: c_gra's Replies | WordPress.org

---

# c_gra

  [  ](https://wordpress.org/support/users/cgra/)

 *   [Profile](https://wordpress.org/support/users/cgra/)
 *   [Topics Started](https://wordpress.org/support/users/cgra/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cgra/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cgra/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cgra/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cgra/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cgra/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event post] Full body text instead of excerpt](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/#post-16554062)
 * Thank you for the reply and sorry that I don’t fully understand. Do you mean,
   placing this code snippet in functions.php will bring the former behaviour?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event post] Full body text instead of excerpt](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/#post-16491482)
 * As I got no answer for one week I want again raise my issues.
 * How can I get the former behaviour? Can you include a toggle in settings or help
   me with some php-code to override the new feature in the child theme?
 * Thanks,
 * Christian
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event post] Full body text instead of excerpt](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/full-body-text-instead-of-excerpt/#post-16466665)
 * Hi, for me it is just the opposite. Everything regarding the excerpts was good,
   because the Divi/Extra-Theme managed the excerpt display even when no excerpt
   was available in the posts. Now in every post announcement the full text is displayed.
 * How can I get the former behaviour? Can you include a toggle in settings or help
   me with some php-code to override the new feature in the child theme?
 * Thanks, Christian
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Credit] Courtesy Text](https://wordpress.org/support/topic/courtesy-text/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/courtesy-text/#post-14458212)
 * Hi pepe, thank you so much, it works perfectly! As we are only targeting german
   language with our online-magazine this is the solution!
    You can take a look 
   if you want here: [https://vanlifemagazin.eu/the-american-way-of-drive-die-geschichte-der-kult-caravans-von-airstream/](https://vanlifemagazin.eu/the-american-way-of-drive-die-geschichte-der-kult-caravans-von-airstream/)(
   magazine is in development) Kind regards, Christian
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Credit] Courtesy Text](https://wordpress.org/support/topic/courtesy-text/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/courtesy-text/#post-14455327)
 * I tried this (sorry in advance if this is totally stupid …)
 *     ```
       add_filter('ngettext_media-credit', 'my_change_text', 20, 4);
   
       function my_change_text( $translation, $single, $plural, $number ) {
           if ( 'Image courtesy of %2$s%1$s' === $single && 'Images courtesy of %2$s and %1$s' === $plural ) {
               // Modify $translation based on $number - could be plural!
       	$custom_text = array(
               'Image courtesy of' => 'Image:',
           );
           if( array_key_exists( $translation, $custom_text ) ) {
               $translation = $custom_text[$translation];
           }
           return $translation;
       }
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Credit] Courtesy Text](https://wordpress.org/support/topic/courtesy-text/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/courtesy-text/#post-14447245)
 * ok, I don’t get it to work. Could you help me with the full code to get the output“
   Images: ” and in german “Bilder: ” (single an plural) instead of “Image courtesy
   of”?
    That would be great 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Credit] Courtesy Text](https://wordpress.org/support/topic/courtesy-text/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/courtesy-text/#post-14446622)
 * Hi pepe, you are assuming right 😉 But I have many years experience with tweeks
   here and there and sometimes you have to modify in functions.php, sometimes in
   post.php, sometimes in the php of the plugin itself. I’ll give it a try in my
   functions.php, thanks for the quick answer!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Credit] Courtesy Text](https://wordpress.org/support/topic/courtesy-text/)
 *  [c_gra](https://wordpress.org/support/users/cgra/)
 * (@cgra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/courtesy-text/#post-14441401)
 * sorry for the maybe silly question … where to put this code?

Viewing 8 replies - 1 through 8 (of 8 total)