Thanks for working on this. Okay, I’m not seeing a change. And I get this a warning that says this
“Warning: Invalid argument supplied for foreach() in /home4/drtricia/public_html/drtriciagroff.net/wp-content/plugins/tabs-responsive/ink/install/installation.php on line 12” when I go to the admin login for my website.
I cut and pasted the second code you provided under line 5. Below is what I have, including the very beginning and then several lines after the new code insert.
<?php
add_action(‘plugins_loaded’, ‘wpsm_tabs_r_tr’);
function wpsm_tabs_r_tr() {
load_plugin_textdomain( wpshopmart_tabs_r_text_domain, FALSE, dirname( plugin_basename(__FILE__)).’/languages/’ );
}
if(!is_admin()){
function wpsm_dequeue_script() {
global $wp_query;
$Posts = $wp_query->posts;
$Pattern = get_shortcode_regex();
foreach ($Posts as $Post) {
if( preg_match_all( ‘/’. $Pattern .’/s’, $Post->post_content, $Matches ) && array_key_exists( 2, $Matches ) && in_array( ‘TABS_R’, $Matches[2] ) ) {
wp_dequeue_script(‘superfish-menu’);
break;
} //end of if
} //end of foreach
}
add_action( ‘wp_print_scripts’, ‘wpsm_dequeue_script’, 1 );
}
function wpsm_tabs_r_front_script() {
wp_enqueue_script(‘jquery’);
//font awesome css
wp_enqueue_style(‘wpsm_tabs_r-font-awesome-front’, wpshopmart_tabs_r_directory_url.’assets/css/font-awesome/css/font-awesome.min.css’);
wp_enqueue_style(‘wpsm_tabs_r_bootstrap-front’, wpshopmart_tabs_r_directory_url.’assets/css/bootstrap-front.css’);
wp_enqueue_style(‘wpsm_tabs_r_animate’, wpshopmart_tabs_r_directory_url.’assets/css/animate.css’);
wp_enqueue_script( ‘wpsm_tabs_r_bootstrap-js-front’, wpshopmart_tabs_r_directory_url.’assets/js/bootstrap.js’, array(), ”, true );
}