I noticed that when using yoast SEO and its open graph feature, the facebook debugger says there are duplicate og:url tags.
Yoast has the ability to add an admin to the open graph. I also think they provide some more features when it comes to manually selecting what images to show.
1. What are your recommendations on this?
2. Is royal outputting open graph data automatically?
3. How can I turn off the Royal theme open graph data?
Thank you!Site URL: hidden Theme version: latest WooCommerce version: latest
yes, you will need to delete this part of code once more time after theme update.
If you do not want to do this – you can set up Child Theme and add edited code to file ‘functions.php’.
Your customization will not be lost after theme update.
I have the same problem, however the lines you mention will probably not be the same since the php file changes in new theme version. So… what is the exact code I should be deleting to get rid of the duplicate og:url tags?
You need remove the lines 1235-1239 in the file wp-content/themes/royal/framework/theme-functions.php, the code is:
echo '<meta property="og:title" content="' . get_the_title() . '"/>'; echo '<meta property="og:type" content="article"/>'; echo '<meta property="og:description" content="' . $description . '"/>'; echo '<meta property="og:url" content="' . get_permalink() . '"/>'; echo '<meta property="og:site_name" content="'. get_bloginfo('name') .'"/>';
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty