tags function filter_ptags_on_images($content){ return preg_replace('/

\s*()?\s*()\s*(\/a>)?\s*<\/p>/iU', '\1\2\3', $content); } add_filter('the_content', 'filter_ptags_on_images'); // Remove WooCommerce if not necessary on page function remove_unnecessary_woocommerce() { if ( !is_woocommerce() ) wp_deregister_script( 'comment-reply' ); } // Adjust markup on all WooCommerce pages remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); add_action('woocommerce_before_main_content', 'sanglorians_before_content', 10); add_action('woocommerce_after_main_content', 'sanglorians_after_content', 10); // Remove mfunc breaking sidebar crap - this is only needed if you're cacheing the sidebar function woocommerce_prevent_sidebar_cache( $sidebar ) { echo ''; } // Fix the layout etc function sanglorians_before_content() { ?>

Shop

var _gaq = [["_setAccount", "UA-15504121-11"], ["_trackPageview"]]; (function(d, t) {var g = d.createElement(t),s = d.getElementsByTagName(t)[0]; g.src = "//www.google-analytics.com/ga.js"; s.parentNode.insertBefore(g, s);}(document, "script")); '; } add_action('wp_footer', 'add_google_analytics'); // Disable WooCommerce styles //define('WOOCOMMERCE_USE_CSS', false); // Disable the theme / plugin text editor in Admin define('DISALLOW_FILE_EDIT', true); // Remove WordPress head junk remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); // Temporarily add BugHerd back in function add_bugherd() { echo ""; } add_action('wp_footer', 'add_bugherd'); ?>