FrontEnd – NorthBeam & Proof Scripts
function insert_nort_proof() { $nortbeam_script = ‘‘; $proof_script = ‘‘; echo $nortbeam_script; echo $proof_script; } add_action( “wp_head”, “insert_nort_proof”, 0 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
/** * This snippet removes some options for recurring donation periods with Charitable’s Recurring Donations addon. * This might reset or cause odd things to happen to campaigns who resave settings without updating the period if * they already selected…Continue reading
add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });Continue reading