Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Assets (css/js) missing in admin wordpress #197

@udarts

Description

@udarts

I am embedding Redux to a theme I am developing and not using the the plugin.

I followed the instructions: https://devs.redux.io/guides/advanced/embedding-redux.html

And added the redux-core folder in the admin folder of my theme. Then I added the following code:

if ( !class_exists( 'ReduxFramework' ) && file_exists( dirname( __FILE__ ) . '/admin/redux-core/framework.php' ) ) {
    require_once( dirname( __FILE__ ) . '/admin/redux-core/framework.php' );
}

When checking the page, it shows errors in the console, that the css and js files are missing (they point to incorrect paths).

Expected Behavior

I expect to see the options page all styled and working.

Actual Behavior

It shows errors in the console of missing js and css files

Schermafbeelding 2021-02-13 om 20 12 23

The path of the framework.php is: {theme-name/inc/admin/redux-core/framework.php}

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