Answer the question
In order to leave comments, you need to log in
How to fix wordpress custom metabox translation?
the code
// Add Sidebar Settings to pages
if ( class_exists( 'Lsvr_Post_Metabox' ) ) {
$lsvr_townpress_page_sidebar_settings_metabox = new Lsvr_Post_Metabox(array(
'id' => 'lsvr_townpress_page_sidebar_settings',
'wp_args' => array(
'title' => __( 'Sidebar Settings', 'townpress' ),
'screen' => 'page',
'context' => 'side',
'priority' => 'low',
)
Answer the question
In order to leave comments, you need to log in
Judging by the fact that you specify the name of your theme (townpress), you need to create a translation file specifically for the theme and translate this sidebar there. You can do this with the Poedit utility. 'title' => __( 'Sidebar Settings', 'townpress' ),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question