Loading CSS for public and admin can be done through the new /assets/css directory.
Open class-xenwordd-style-loader.php
This is found in the /legacy/includes/Styles directory of the plugin.
Change the styles function to the following:
You can now delete the /legacy/public directories. because the new assets/css files are being loaded.
Open class-xenwordd-style-loader.php
This is found in the /legacy/includes/Styles directory of the plugin.
Change the styles function to the following:
PHP:
public function styles() {
if ( class_exists( 'XenForo_Model' ) ) {
// Load /assets/css/xenword-public.css
new XenWord\Core\Stylesheets();
// Load /assets/css/xenword-admin.css
new XenWord\Admin\Dashboard\Stylesheets();
/** Load the XenWord toolbar for alerts, conversations. */
if ( $this->options['use_wordpress_toolbar'] == true ) {
require_once __DIR__ . '/' . 'class-xenword-toolbar.php';
}
/** Load the XenWord toolbar login - signup links */
if ( $this->options['use_toolbar_login'] == true ) {
require_once __DIR__ . '/' . 'class-xenword-toolbar-login.php';
}
}
}
You can now delete the /legacy/public directories. because the new assets/css files are being loaded.