Category: Widgets
Digital
Tasty Recipes – Change star rating size and spacing
/* change increase or decrease .97 to change star size, change 0.5 to change spacing */ .tasty-recipes, .tasty-recipes-ratings { –tr-star-size: .97em!important; –tr-star-margin: 0.5em!important; }Continue reading
Change rating tooltip colors
/* change #000 in both places below to change the background, change #FFF to change the text color, change #F7D578 to change the link color */ .tasty-recipes-static-tooltip { background-color:#000 !important; color:#FFF !important; } .tasty-recipes-static-tooltip:after { border-top-color:#000 !important; } a.tasty-recipes-scrollto {…Continue reading
Automatically Set the Complete Order Status
add_action( ‘woocommerce_thankyou’, function ( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); if( ‘processing’ == $order->get_status() ) { $order->update_status( ‘completed’ ); } } );Continue reading
Beehive limit
add_filter( ‘beehive_google_analytics_ga4_accounts_page_size’, function ( $limit ) { return 100; } );Continue reading
Override strings
add_filter( ‘gettext’, function ( $translated_text, $text, $domain ) { if ( $text == ‘Birthday (optional)’ ) { $translated_text = __( ‘Birthday’, ‘rug’ ); } return $translated_text; }, 20, 3 );Continue reading
Remove Rank Math data from the database on uninstall
add_filter( ‘rank_math_clear_data_on_uninstall’, ‘__return_true’ );Continue reading
Add custom class to body
add_filter( ‘body_class’, function ( $classes ) { global $post; if ( is_front_page() || is_page( [64, 78, 532, 533, 76] ) || $post->post_parent == 64 || is_singular( ‘product’ ) || is_post_type_archive( ‘product’ ) ) { $classes[] = ‘header-button-blue’; } if (…Continue reading
Sold individualy for all products
add_filter( ‘woocommerce_is_sold_individually’, function ( $return, $product ) { return true; }, 10, 2 );Continue reading