c_gra
Forum Replies Created
-
Forum: Plugins
In reply to: [Event post] Full body text instead of excerptThank 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
In reply to: [Event post] Full body text instead of excerptAs 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
In reply to: [Event post] Full body text instead of excerptHi, 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
In reply to: [Media Credit] Courtesy TextHi 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/
(magazine is in development)
Kind regards,
ChristianForum: Plugins
In reply to: [Media Credit] Courtesy TextI 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
In reply to: [Media Credit] Courtesy Textok, 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
In reply to: [Media Credit] Courtesy TextHi 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
In reply to: [Media Credit] Courtesy Textsorry for the maybe silly question … where to put this code?