Yoast SEO not generating product schema

I am setting up a new e-commerce site and I am using Yoast. The schema it generates for a WooCommerce product is as follows: {“@context”:”https://schema.org”,”@graph”:[{“@type”:”WebSite”,”@id”:”http://www.example.com/#website”,”url”:”http://www.example.com/”,”name”:”example.com”,”description”:”Just another WordPress site”,”potentialAction”:{“@type”:”SearchAction”,”target”:”http://www.example.com/?s={search_term_string}”,”query-input”:”required name=search_term_string”}},{“@type”:”ImageObject”,”@id”:”http://www.example.com/product/bundle-of-three-sweat-shirts-for-womens/#primaryimage”,”url”:”http://www.example.com/wp-content/uploads/2019/12/OPT-WP-09.jpg”,”width”:700,”height”:700},{“@type”:”WebPage”,”@id”:”http://www.example.com/product/bundle-of-three-sweat-shirts-for-womens/#webpage”,”url”:”http://www.example.com/product/bundle-of-three-sweat-shirts-for-womens/”,”inLanguage”:”en-US”,”name”:”Bundle Of Three Sweat Shirt\u2019s for women – example.com”,”isPartOf”:{“@id”:”http://www.example.com/#website”},”primaryImageOfPage”:{“@id”:”http://www.example.com/product/bundle-of-three-sweat-shirts-for-womens/#primaryimage”},”datePublished”:”2019-12-18T12:17:55+00:00″,”dateModified”:”2019-12-18T19:00:27+00:00″,”description”:”Bundle Of Three Sweat Shirt\u2019s for women online in Pakistan – Best Prices and great value for money -…

Add back in child theme what the parent theme removed with remove_action

My parent theme removes the emoji fallback script that makes emoji show up as images: // parent theme’s functions.php remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7); remove_action(‘wp_print_styles’, ‘print_emoji_styles’); I want to add it back in the child theme (to make this configuration survive theme updates) but if I just add_action it either doesn’t work or works at the wrong…

Send sprout email programmatically

I’m trying to send a sprout email from my plugin like so: use barrelstrength\sproutbaseemail\mailers\DefaultMailer; use barrelstrength\sproutbaseemail\SproutBaseEmail; use barrelstrength\sproutbaseemail\elements\NotificationEmail; use Craft; use craft\base\Plugin; use yii\base\Event; class MyPlugin extends Plugin { public function init() { $mailer = SproutBaseEmail::$app->mailers->getMailerByName(DefaultMailer::class); // How do I let it know what email to send? $mailer->sendNotificationEmail(); } } It says that sendNotificationEmail expects…

Woocommerce stratching images

how to disable image scaling? https://chromei.ru/stulya-obedennye/stul-obedennyj-buldog-m/ It’s 304×400 JPG pic stretched to 513×675, this is rubber picture. Bigger browser – bigger stratching. I don’t need this. This code is in functions.php of the template: function add_thumbnail_size($size){ $size[‘width’] = 200; $size[‘height’] = 200; $size[‘crop’] = 0; //0 – не обрезаем, 1 – обрезка return $size; }…

Place product field value as variable in php

I have created a new field using ACF for woocommerce. The field is called “position” and has default value 52. Now I want this value as a php variable in a image generation script. Inside one function I have: $position = get_field(‘position’); and echo ‘<input type=”hidden” name=”position2″ value=”‘.$position.'” id=”position2″ >’; At frontend I see that…