-
Hello Rank Math support team,
I am trying to customize the Open Graph image width and height for an external image with a CDN on my website. To achieve this, I have added the following code to my rank-math.php file:add_filter( "rank_math/opengraph/facebook/og_image_width", function( $content ) { $content = '1000'; return $content; }); add_filter( "rank_math/opengraph/facebook/og_image_height", function( $content ) { $content = '1000'; return $content; });However, I have noticed that the og:image:width and og:image:height tags are not showing up in the source code when I view the page. Could you please help me determine why the filters are not working as expected and how I can resolve this issue?
Thank you for your assistance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this ticket.