Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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?

    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

    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

    c_gra

    (@cgra)

    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/
    (magazine is in development)
    Kind regards,
    Christian

    c_gra

    (@cgra)

    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;
    }
    }
    c_gra

    (@cgra)

    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 🙂

    c_gra

    (@cgra)

    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!

    c_gra

    (@cgra)

    sorry for the maybe silly question … where to put this code?

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