Last active
October 28, 2020 00:57
-
-
Save rushijagani/502f289ddf2a820f67d53f526291ae79 to your computer and use it in GitHub Desktop.
Update default strings from Astra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Change Default String. | |
function default_strings_callback( $strings ) { | |
$strings['string-comment-title-reply'] = __( 'Hozzászólás', 'astra' ); | |
$strings['string-comment-label-submit'] = __( 'Elküldés »', 'astra' ); | |
$strings['string-comment-label-message'] = __( 'Ide írj..', 'astra' ); | |
$strings['string-single-navigation-next'] = __( 'következő %s', 'astra' ) . ' <span class="ast-right-arrow">→</span>'; | |
$strings['string-single-navigation-previous'] = '<span class="ast-left-arrow">←</span> ' . __( 'előző %s', 'astra' ); | |
$strings['string-blog-meta-author-by'] = __( 'írta', 'astra' ); | |
$strings['string-blog-meta-leave-a-comment'] = __( 'Hozzászólás', 'astra' ); | |
return $strings; | |
} | |
add_filter( 'astra_default_strings', 'default_strings_callback', 10 ); | |
// Change Read More string | |
function read_more_string_update_callback( ) { | |
// Read More | |
return __( 'Tovább olvasom »', 'astra' ); | |
} | |
add_filter( 'astra_post_read_more', 'read_more_string_update_callback', 11 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment