If your goal is to put it in the <head>IM INSIDE THE HEAD</head>
tag than just put it inside the head tag in the theme_header.php
or header.php
of your theme – if it’s not a child theme.
Place this snippet of code directly above the closing </head>
tag in your header.php file.
<?php
if ( is_checkout() || is_cart() ) {
// Add meta tag here
echo '<meta name="yo:active" content="false">';
}
?>
Should work fine for you.
Related Posts:
- Most efficient way to add javascript file to specific post and/or pages?
- How to automatically apply woocommerce product title to all product images alt tags?
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- WooCommerce: update custom fields after checkout validation failure
- How to make custom total price reactive in navigation
- How to prevent those PHP variables from being cached on WordPress?
- How do I display a user’s previous orders as a select box option on a product?
- tracking number field in Woocommerce order [closed]
- Status 400 for AJAX POST Request with admin-ajax.php
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Need Help Fixing My Iframes [closed]
- Trouble checking if custom woocommerce checkout field is empty or not
- Add / Update Custom Fields After Select Pictures in Media Window
- Redirect to another page using contact form 7? [closed]
- get taxonomy thumbnail and use it as a variable in code
- WP All Import / Update stock quantity from multiple XML files
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Creating a brand attribute as a variable
- Variation prices breakdown only for single product page
- Display custom field value in woocommerce variable product via jQurey
- Woocommerce disable order item link (backend) [closed]
- AJAX to add to cart multiple products woocommerce
- sessionStorage saves input value in browser but it is not loaded in the form field
- How to echo a PHP code into WooCommerce variation product?
- WooCommerce multiple custom fields code
- Display text of price (minus 20%) on every product page in a sentence.
- Add specific phrase after every product title including the discounted price? [closed]
- Grabbing value of input field inside of array
- Remove Woocommerce product from cart with ajax/fetch
- WooCommerce Modal Fly cart on add to cart – With AJAX
- Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file
- Replace existing content from specific WooCommerce admin orders list column
- How to get woocommerce cart content without an action?
- how to increase custom post value by one most efficiently?
- Slide in Panel WordPress Post
- Woocommerce product download URL
- Bridging TinyMCE js and WordPress PHP?
- How can I use wp_query to show all product data using just the products ID?
- class click counter save number
- Get stock by custom meta field on all Woocommerce variable products
- Set a condition based on WooCommerce checkout city field while placing order
- Call global variable array() in woocommerce child/template
- Passing the custom field values in the wp_get_current_user array function
- Remove price from Woocommerce variable product dropdown menu
- How to change redirection route to a php page for making it only accessible by logged-in members?
- How can I pass a custom/dynamic product to the Woocommerce cart?
- auto-populating custom nav with all items from custom post type
- Saving zero in meta box
- Is the wp_enqueue method efficient?
- Add post with approval by the admin
- Making an AJAX call to refresh a table
- Woocommerce display one random product via php
- customize woocommerce templates and display store on home
- WC_Customer delete function returns error
- Exclude product attributes from taxonomy terms loop
- Post repeated when opening in overlay, how do I solve this? [closed]
- Woocommerce: remove total sum from new order’s email [closed]
- Alter Woocommerce product archive structure
- Concatenate Custom Field Value & HTML Value
- custom post type with role Vendor
- Display background color or image with custom meta box?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- security concerns if using html data-* attribute for l10n?
- Adding a custom meta field with default NULL value which is not selectable
- Replace category title with category description in woocommerce
- Add Custom Category Description When Empty
- Woocommerce display orders with products from specific categories to specific admins
- Search bar for wp menu
- Products listing check if meta checkbox is checked
- Executing php on button press
- Display div if category has a specific parent
- Use PHP Class in WordPress functions
- How do I change the “login” label in My Account page to “Registered Customer”
- Customize the “Available for back order” text for specific variation
- How to remove the replace the product image by video on shop page conditionally
- wp_get_nav_menu_items() with ACF
- How to add custom attribute to all outofstock and all instock products automatically?
- Site infected by link
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Replacing entire tag with shortcode – JavaScript [duplicate]
- WooCommerce Custom Tab with ACF Repeater Field
- Custom fields changes the formatting of metabox input
- Display product attributes for current product
- 500 (Internal Server Error) of external php file
- Add title and caption to thumbnail image on mouseover
- How can I put a custom field as the link of a button shortcode?
- I want Page titles and excerpts to show up on home.php in certain order
- Cannot get custom javascript to execute on page
- Adding placeholder text field to woocommerce checkout [closed]
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Send a custom notification to customer on WooCommerce cancelled order status
- How to code bulk order form in wordpress
- Show button in header when product custom field is not empty
- Convert custom field date format to “WordPress default”
- Woocommerce Convert existing order to the cart
- How to change shipping method title based on cart amount?