• gornycreative

    (@gornycreative)


    So in addition to possibly creating an option to incorporate the ability to choose base parents selectors for both refs and notes, you will really want to change your side-matter.php file to be more selective as to when it loads its admin.js file. Right now it loads on every admin page and breaks causing scripting issues for some sites (including mine).

    In side-matter/side-matter.php, where it says:

    public function admin_enqueue( $hook ) { // Enqueue script and stylesheet for Side Matter options menu
    
    		global $wp_version;

    A $hook check needs to be inserted, so that these lines read:

    public function admin_enqueue( $hook ) { // Enqueue script and stylesheet for Side Matter options menu
    		    if ( 'appearance_page_side-matter' != $hook ) {
    		        return;
    		    }
    		global $wp_version;

    This makes sure the css and js for your settings page only loads on the settings page and show no errors in the console.

    https://www.ads-software.com/plugins/side-matter/

  • The topic ‘JS enqueue is a little greedy on the admin side’ is closed to new replies.