Support » Plugin: WooCommerce Admin Bar Addition » Minor issue – Browser warning when using SSL

  • The plugin contains a form to search WooThemes documentation, which points to When a secure page is loaded, using https, the form is considered an insecure resource and the browser display a warning saying “this page is secure, but it submits data to an insecure location“.

    Minor to medium. Any user who will see the admin bar will also see the warning. That may be a problem at checkout, as the page looks insecure.

    Unfortunately, it’s not possible to just replace http with https in the link above, because does not exist.

    Possible solutions
    – Remove the form altogether. I did that, as I don’t use it.
    – Remove the form on https pages.
    – Make the form optional, so that site admins can choose if it should be displayed or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @diego – I ran into this issue as well and removed it with the following code:

    add_filter( 'admin_bar_menu', 'remove_wcdocs_searchform', 100 );
    function remove_wcdocs_searchform( $wp_admin_bar ){
    	$wp_admin_bar->remove_node( 'ddw-woocommerce-wcdocs-searchform' );
    Thread Starter Diego


    Yes, removing the form entirely is what I did as well. I didn’t use a filter because I didn’t want to pollute the theme to fix a bug in an external plugin. 🙂

    I usually use a drop in file for things like this so I can take advantage of the plugin, but not have to edit each theme. For example just add it to /wp-content/mu-plugins/plugin-fixes.php and it will be loaded automatically (for all sites with WP Multisite).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minor issue – Browser warning when using SSL’ is closed to new replies.