• Resolved Mithun Sridharan

    (@mithungmxnet)


    Hi Mike,

    I’m using WP Job Manager plugin and observed that you’re enqueuing admin styles. This, however, does not blend well with the theme I’m using (Hueman), which loads its own set of admin styles.

    I looked into the source code and came up with a workaround. I hope you’ll consider integrating this in the next plugin release.

    In the file class-wp-job-manager-admin.php, the following check keeps the theme from breaking:

    if('job_listing' == get_post_type()) {
    wp_enqueue_style( 'jquery-ui-style', '//ajax.googleapis.com/ajax/libs/jqueryui/' . $jquery_version . '/themes/smoothness/jquery-ui.css' );
    wp_enqueue_style( 'job_manager_admin_menu_css', JOB_MANAGER_PLUGIN_URL . '/assets/css/menu.css' );
    wp_enqueue_style( 'job_manager_admin_css', JOB_MANAGER_PLUGIN_URL . '/assets/css/admin.css' );
    }

    Thanks for this and the other plugins. A big fan of your elegant design and plugins.

    Best Regards,
    Mithun

    https://wordpress.org/plugins/wp-job-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fix: Job manager admin styles (css) breaking theme’ is closed to new replies.