Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author gelthemes

    (@gelthemes)

    This question was answered on our support forum and is a generalized SEO question not a Plugin support question.

    Plugin Author gelthemes

    (@gelthemes)

    AngeloDownunder, thank you for you feedback. It allowed us to correct this issue. We have solved the Popup problem with our plugin.

    The problem was the Sweet Captcha Plugin we were using for our website which is accessed through the plugin for some functionality. Needless to say we have removed the Sweet Captcha Plugin and there are no further popup problems.

    Below you will find a link to a thread that discusses this very issue. Thank you again for helping us identify it.

    We would really appreciate it if you would revise your review in light of this information. I would also like to offer you 1 free month of our Pro SEO Services for helping us to identify this issue. Please contact me at rob[at]localadworks.com and I will get you set up.

    Thread on Sweat Captcha: https://www.ads-software.com/support/topic/sweetcapcha-hacked-and-causing-malicious-popups?replies=44

    Plugin Author gelthemes

    (@gelthemes)

    You can scan your listings for free and you can go to each website in the report and correct your business listing manually, one by one.

    If you would like to upgrade you can enter your business listing once and our Plugin will correct, create and aggregate all your business listings.

    You will also have additional monitoring and local listing updating features which will enable you to post to all your local listings at once with fresh information and content like announcements, coupons, deals, special events and more.

    Thread Starter gelthemes

    (@gelthemes)

    Chris, thank you for your response. I looked at that solution and saw that print_style was not supposed to be used on Admin Pages.

    Here is the solution I finally cam up with after a lot of digging and testing.

    Just as a side not the purpose of this whole endeavor was to enqueue Bootstrap CSS and JS.

    The solution was to set a global variable for the Admin Settings Page. If you see any way in which this code can be cleaned up or improved upon, please contribute.

    function wpgel_localseo_menu() {
    	global $wpgel_localseo_settings_page;
    	$wpgel_localseo_settings_page = add_menu_page(
    		'Local SEO Dashboard',
    		'Local SEO',
    		'manage_options',
    		'wpgel-localseo',
    		'wpgel_localseo_options_page'
    	);
    }
    add_action( 'admin_menu', 'wpgel_localseo_menu' );
    
    function wpgel_localseo_bootstrap_styles($hook) {
      global $wpgel_localseo_settings_page;
      if   ( $hook == $wpgel_localseo_settings_page ) {
    	wp_enqueue_style( 'wpgel_localseo_bootstrap_styles', plugins_url( 'wpgel-localseo/css/bootstrap.min.css', dirname(__FILE__) ) );
            wp_enqueue_script( 'wpgel_localseo_bootstrap_script', plugins_url( 'wpgel-localseo/js/bootstrap.min.js', dirname(__FILE__) ) );
          }
    }
    add_action('admin_enqueue_scripts', 'wpgel_localseo_bootstrap_styles');
    Thread Starter gelthemes

    (@gelthemes)

    Well I am getting closer. Need a little more help though. I am now able to pull the css file into a specific page as long as it ends in .php, however my options page is /wp-admin/admin.php?page=wpgel-localseo

    Again, any help with the below code would be much appreciated.

    function wpgel_localseo_bootstrap_styles($hook) {
    
          if   ( 'options-general.php' == $hook ) { 
    
              wp_enqueue_style( 'wpgel_localseo_bootstrap_styles', plugins_url( 'wpgel-localseo/css/bootstrap.min.css' ) );
    
          }
    }
    add_action('admin_enqueue_scripts', 'wpgel_localseo_bootstrap_styles');
Viewing 5 replies - 16 through 20 (of 20 total)