Double "themes" slug in wp-admin

I integrated kirki framework. But it’s scripts can’t loaded true because of double “themes” slug. So it gives 404 error in console. It looks like this:

http://localhost/wordpress3/wp-content/themes/themes/sage/app/inc/kirki/controls/css/styles.css

It can’t load any scripts because of this problem.

Going by the URL I assume you’re not using Kirki as a plugin? I use it that way and don’t have any issues.
Maybe the way you’ve set it up in your theme has an incorrect path.

1 Like

How? Posting code would be helpful to try and debug your issue

Have you looked at https://github.com/aristath/kirki/issues?

Soy for late response. I have fixed my issue with adding directory for kirki.

function kirki_update_url( $config ) {
    $config['url_path'] = get_template_directory_uri() . '/../app/inc/kirki/';
    return $config;
}
add_filter( 'kirki/config', 'kirki_update_url' );
1 Like