• For extra scripts are not loaded in the front, do so in NasherSEO.php file:

    add_action('admin_enqueue_scripts', 'back_end_include_files');
    function back_end_include_files() {
    	wp_enqueue_script('custom-js', plugins_url( '', __FILE__ ).'/js/custom-js.js');
    	wp_enqueue_script('limit', plugins_url( '', __FILE__ ).'/js/limit.js');
    	wp_enqueue_script('selectall', plugins_url( '', __FILE__ ).'/js/selectall.js');
    	wp_enqueue_script('mytabs', plugins_url( '', __FILE__ ).'/js/mytabs.js',array( 'jquery-ui-tabs' ));
    	wp_enqueue_script('jquery-ui', plugins_url('', __FILE__) . '/js/jquery-ui.js');
    	wp_enqueue_script('nashr-autocomplete', plugins_url('', __FILE__) . '/js/nashr-autocomplete.js', array( 'jquery-ui-autocomplete' ));
    	//load ajax files
    	wp_register_script("ajax-js", plugins_url( '', __FILE__ ) . '/js/ajax-js.js', array('jquery'));
    	wp_localize_script('ajax-js', 'ajax', array('ajaxurl' => admin_url('admin-ajax.php')));
    	wp_enqueue_script('ajax-js');
    	// load ajax
    	wp_register_script("ajax-nashr",plugins_url('', __FILE__) .'/js/ajax-nashr.js', array('jquery'));
    	wp_localize_script('ajax-nashr', 'myAjax', array('ajaxurl' => admin_url('admin-ajax.php')));
    	wp_enqueue_script('ajax-nashr');
    }

    FIX BUG “HERF”
    file: nashr-seo/include/mnbaa_functions.php line:89

    function mnbaa_seo_make_linkTage($value, $content){
    	echo '<link rel='.$value.' herf="'.$content.'" />
    ';
    }

    replace “herf” to “href”

    • This topic was modified 7 years, 3 months ago by svmidi.
  • The topic ‘efficiency suggestion’ is closed to new replies.