Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Max

Hello, i put the code into my funktions.php and deleted the cache. But unfortunately no new og image is created. RankMath many regard max <?php /**  * The following goes in your child theme's functions.php file  */   /**  * Generate custom Open Graph images for your blog posts  *  * @param  string $url URL of OG image in HTML Meta.  * @return string $url URL of OG image in HTML Meta.  */ function mb_generate_og_image_url( $url = '' ) {       // Admin can throw errors, so let's just skip that     if ( is_admin() ) {       … Read more »