Skip to main content
Notice removed Draw attention by Patrick
Bounty Ended with Jermain Newman's answer chosen by Patrick
edited tags
Link
Patrick
  • 295
  • 3
  • 10
  • 26
Notice added Draw attention by Patrick
Bounty Started worth 50 reputation by Patrick
added 244 characters in body; edited title
Source Link
Patrick
  • 295
  • 3
  • 10
  • 26

Add How to add specific meta tags to page based off page idhead of cart and checkout pages in woocommerce?

I am trying to insert this meta information into the cart and checkout page for woocommerce. It will hide a specific plugin on those pages. However i know if i edit the plugin files for woocommerce it will be overwritten on woocommerce update.

How would i do that in jQuery or JavaScriptcorrectly? Jquery? Or even function.php function would work.?

if (wc_get_page_id( 'cart' ) == get_the_ID()) {
  <meta name="yo:active" content="false">
}

or

if !is_page(array('cart', 'checkout')) {
  $('#yoHolder').attr("style", "display: none !important");
}

i tried this too to achieve same outcome of hiding it but didnt work.

Thanks for any help!

Add meta to page based off page id

I am trying to insert this meta information into the cart and checkout page for woocommerce. However i know if i edit the plugin files it will be overwritten on woocommerce update.

How would i do that in jQuery or JavaScript? Or even function.php function would work.

if (wc_get_page_id( 'cart' ) == get_the_ID()) {
  <meta name="yo:active" content="false">
}

Thanks for any help!

How to add specific meta tags to head of cart and checkout pages in woocommerce?

I am trying to insert this meta information into the cart and checkout page for woocommerce. It will hide a specific plugin on those pages. However i know if i edit the plugin files for woocommerce it will be overwritten on woocommerce update.

How would i do that correctly? Jquery? Or even function.php function?

if (wc_get_page_id( 'cart' ) == get_the_ID()) {
  <meta name="yo:active" content="false">
}

or

if !is_page(array('cart', 'checkout')) {
  $('#yoHolder').attr("style", "display: none !important");
}

i tried this too to achieve same outcome of hiding it but didnt work.

Thanks for any help!

Source Link
Patrick
  • 295
  • 3
  • 10
  • 26

Add meta to page based off page id

I am trying to insert this meta information into the cart and checkout page for woocommerce. However i know if i edit the plugin files it will be overwritten on woocommerce update.

How would i do that in jQuery or JavaScript? Or even function.php function would work.

if (wc_get_page_id( 'cart' ) == get_the_ID()) {
  <meta name="yo:active" content="false">
}

Thanks for any help!