View full post

  • Anonymous

    #7051

    I cannot find in any place where the “View Full Post” string of slider button is located. I need to understand why it does not translate to another language. I cannot find it in .PO files. Thank you in advance.

    Anonymous

    #36687

    This was answerd a few times before. Search the forum before you open topic.

    Ad this in your child theme functions.php

    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'View full post' => 'Custom Text',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum