Skip to content

Function _load_textdomain_just_in_time was called incorrectly. #269

@kuebel

Description

@kuebel

If you get the error

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the sparkling domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later.

move in functions.php in the theme directory the following lines up to function sparkling_setup()

global $site_layout;
$site_layout = array(
'side-pull-left' => esc_html__( 'Right Sidebar', 'sparkling' ),
'side-pull-right' => esc_html__( 'Left Sidebar', 'sparkling' ),
'no-sidebar' => esc_html__( 'No Sidebar', 'sparkling' ),
'full-width' => esc_html__( 'Full Width', 'sparkling' ),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions