/* LÄGGER TILL BESKRIVNING UNDER PRISET FÖR PRODUKTER EJ I LAGER ELLER EJ KÖPBAR */ add_action( ‘woocommerce_single_product_summary’, ‘visa_produktbeskrivning’, 40 ); function visa_produktbeskrivning() { global $product; if ( ! $product->is_in_stock() || $product->get_stock_status() == ‘ej-kop’ ) { echo ‘ ‘; echo apply_filters(…Continue reading
add_filter( ‘tasty_recipes_min_rating_without_comment’, function() { return 6; // Require comments for 4 and 5 star ratings too. } );Continue reading
function insert_nort_proof() { $nortbeam_script = ‘‘; $proof_script = ‘‘; echo $nortbeam_script; echo $proof_script; } add_action( “wp_head”, “insert_nort_proof”, 0 );Continue reading
// This code snippet ensures that vendors are displayed in the following order: // – Featured vendors (vendor posts with ‘status_ven_featured’ set to 1) in ascending order by post title // – Love list vendors (vendor posts with ‘status_ven_love_list’ set…Continue reading
add_filter( ‘render_block_tasty-roundups/item’, function ( $block ) { $initial_block = $block; $block = preg_replace( ‘~Continue reading
jQuery(“footer”).append(“ Site managed by Maintain+ “)Continue reading
add_filter( ‘totaltheme/theme_builder/location_template_id’, function( $template_id, $location ) { if ( $template_id && ‘single’ === $location && is_front_page() ) { $template_id = 0; // disable on the homepage } return $template_id; }, 10, 2 );Continue reading
// add this snippet to functions.php in your theme add_filter( ‘charitable_active_gateways’, ‘charitable_change_gateways_per_campaign’, 10, 1 ); function charitable_change_gateways_per_campaign( $gateways ) { global $post; // $gateways will be an array similar to this: // [offline] => Charitable_Gateway_Offline // [stripe] => Charitable_Gateway_Stripe_AM if…Continue reading
acf_update_setting(‘enqueue_select2’, false); acf_update_setting(‘enqueue_datepicker’, false); acf_update_setting(‘enqueue_datetimepicker’, false); acf_update_setting(‘enqueue_google_maps’, false); add_action(‘wp_enqueue_scripts’, ‘deregister_acf_styles_95433467545’ ); function deregister_acf_styles_95433467545(){ wp_deregister_style( ‘acf’ ); wp_deregister_style( ‘acf-field-group’ ); wp_deregister_style( ‘acf-global’ ); wp_deregister_style( ‘acf-input’ ); wp_deregister_style( ‘acf-extended-input’ ); wp_deregister_style( ‘acf-datepicker’ ); wp_deregister_style( ‘acfe-input’ ); wp_deregister_style( ‘wp-block-library’ ); wp_deregister_style( ‘wp-color-picker’ );…Continue reading
/* DISABLE GUTENBERG STYLE IN HEADER| WordPress 5.9 */ function wps_deregister_styles() { // wp_dequeue_style( ‘global-styles’ ); wp_dequeue_style( ‘classic-theme-styles’ ); } add_action( ‘wp_enqueue_scripts’, ‘wps_deregister_styles’, 100 );Continue reading