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
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- Woocommerce product search result page layout
- How to correctly add Javascript in functions.php
- How to make an meta_query optional?
- How can update custom meta for all posts
- Unique key for each row in a repeater field
- Woocommerce: How to override core functions in functions.php?
- Using a javascript file to access a get posts array
- Translating add to cart woocommerce button [closed]
- Customizer Show/Hide
- Page Reloads Before AJAX Request Finishes
- How do I fetch all comments per post via WP REST API?
- Ajax return code 400
- combine Code 1 with Code 2
- Two Different Links for Same Product – WooCommerce [closed]
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- Show prices with tax in Woocommerce Mini Cart [closed]
- Problem with custom plugin using AJAX to pull info from php file
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- How to make products with no cost in WooCommerce
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- How to add drag and drop functionalities to a div inside option panel
- Seo Friendly Filter URLs
- how can i add class or span tag at sprintf?
- WooCommerce – Moving Product Price to the Left of Add to Cart Button [closed]
- How to change logo by category
- Have Woocommerce show product price if id, when not logged in
- Define category ID using get_post_meta
- Covert WordPress Blogname into JQuery
- Add “alt” Attribute to GD Star Rating Tags
- custom header text
- PHP variables in a post?
- Add custom fields from different posts
- Order category posts by last word of custom field
- Adding HTML Code to Replace Text in PHP
- How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?
- Ajax search box displays nothing if taxonomy doesn’t exist
- How to get content on a blank basket/cart page in a custom theme with woocommerce
- WooCommerce REST API AJAX Auth – 401 response
- Woocommerce – if selected attribute term equals
- split 1 cart item into instock and back ordered
- register dependency css and js inside a plugin class
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Collapsible menu on post sidebar only expands and does not collapse
- Adding a widget under an ‘Add to Cart’ button through a PHP snippet
- ajax polling with admin-ajax.php
- Woocommerce Related Product by 2 taxonomy
- Hide price excluding tax when price is empty
- How to display custom field from a gallery thumbnail?
- Getting a value from a custom field from a page that shares a parent with the current page
- Woocommerce variation with radio button + price
- A javascript function that simply runs a php function on the plugin
- Populate an array from the loop, and then read the array into JS
- Getting the date_diff function return the difference in days
- Where can I find the code for the menu page meta boxes?
- Execute PHP code in Javascript onclick
- Appending an ACF custom field to the page title
- FATAL ERROR , Sommerce Theme [closed]
- Woocommerce linking variations
- Set variable in javascript and using in my shortcode
- How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
- Is there a way to pull remotely generated XML, process it, and display it on a Managed WordPress page?
- Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme
- Problem with custom user fields default value and retrieval
- Cannot Access ACF Field Values via my Plugin
- Translating the “Everything” filter menu in Quicksand jquery file