Open breadadams opened 9 years ago
Hey Bass,
I'm getting the following error: Notice: Undefined variable: woocommercetwitterbootstrap in /Applications/MAMP/htdocs [...] on line 300
Notice: Undefined variable: woocommercetwitterbootstrap in /Applications/MAMP/htdocs [...] on line 300
Here's the exact code I've placed in my functions file:
if( !function_exists( 'wts' ) ): function wts() { wp_deregister_style ( 'woocommerce-twitterbootstrap'); wp_dequeue_style( 'woocommerce-twitterbootstrap'); wp_register_style ( 'woocommerce-twitterbootstrap', get_template_directory_uri() . '/woocommerce/wts/css/woocommerce-twitterboostrap.css', 'woocommerce' ); wp_enqueue_style( 'woocommerce-twitterbootstrap'); } endif; add_action( 'wp_enqueue_scripts', 'wts', 200 ); remove_action('admin_menu',array($woocommercetwitterbootstrap,'add_menu')); add_action('admin_menu','woocommerce_twitterbootstrap_add_menu'); /** * add a menu */ function woocommerce_twitterbootstrap_add_menu() { global $woocommercetwitterbootstrap; add_theme_page('WooCommerce Twitter Bootstrap Settings', 'WooCommerce Bootstrap', 'manage_options', 'woocommerce-twitterbootstrap', array($woocommercetwitterbootstrap, 'plugin_settings_page')); } // END public function add_menu() remove_action('admin_menu', array($woocommercetwitterbootstrap,'add_menu'));
And I copied all files from master.zip to the wts folder inside my themes woocommerce folder.
Any ideas?
Did you solve this, @breadadams?
Hey Bass,
I'm getting the following error:
Notice: Undefined variable: woocommercetwitterbootstrap in /Applications/MAMP/htdocs [...] on line 300
Here's the exact code I've placed in my functions file:
And I copied all files from master.zip to the wts folder inside my themes woocommerce folder.
Any ideas?