|

Woocommerce Widget Featured Product by Category

In Woocommerce > Includes > Widgets > class-wc-widget-products.php Add at line 70: ‘in_cat’ => array( ‘type’ => ‘text’, ‘std’ => __( ‘Category Number’, ‘woocommerce’ ), ‘label’ => __( ‘In Category’, ‘woocommerce’ ) ), Add at line 101: $cat = ! empty( $instance[‘in_cat’] ) ? sanitize_title( $instance[‘in_cat’] ) : $this->settings[‘in_cat’][‘std’]; Add at line 114: array( ‘taxonomy’…

WordPress Disable Password Change Nofitication

There are a few older functions that you would implement via your own custom plugin, but I found that none of them work. This one didn’t work: if ( !function_exists( ‘wp_password_change_notification’ ) ) { function wp_password_change_notification() {} } This one didn’t work: if ( !function_exists(‘wp_new_user_notification’) ) { function wp_new_user_notification( ) {} } This one didn’t…

Reposition Genesis header right widget

//Custom Header function sample_genesis_do_header() { global $wp_registered_sidebars; if ( ( isset( $wp_registered_sidebars[‘header-right’] ) && is_active_sidebar( ‘header-right’ ) ) || has_action( ‘genesis_header_right’ ) ) { genesis_markup( array( ‘html5’ => ‘ ‘, ‘xhtml’ => ‘ ‘, ‘context’ => ‘header-widget-area’, ) ); do_action( ‘genesis_header_right’ ); add_filter( ‘wp_nav_menu_args’, ‘genesis_header_menu_args’ ); add_filter( ‘wp_nav_menu’, ‘genesis_header_menu_wrap’ ); dynamic_sidebar( ‘header-right’ ); remove_filter( ‘wp_nav_menu_args’,…

JS Full Window Height

// Image section height. var windowHeight = $( window ).height(); $( ‘.image-section’ ) .css({‘height’: windowHeight +’px’}); $( window ).resize(function(){ var windowHeight = $( window ).height(); $( ‘.image-section’ ) .css({‘height’: windowHeight +’px’}); });