Conversation
supportHi there! Thanks for this plugin – I’ve been using it for over a year on a couple of small project sites, and it provides the exact functions I need on posts and pages to create tidy Rich Previews of my content. However, I’ve started to run into issues recently, and I’m wondering if there has been some update in WordPress that has made things incompatible. I use some simple coding to add Rich Previews to pages in the style I want. For example, I may do something like the following: <!-- Chrome Color meta tag --> <meta name="theme-color" content="#de931c" /> <!-- Primary Meta Tags --> <title>Fancy Title</title> <meta name="title" content="Title of Post" /> <meta name="description" content="Woohoo description!" /> <!-- Open Graph / Facebook --> <meta property="og:type" content="website" /> <meta property="og:image:width" content="1200" /> <meta property="og:image:height" content="628" /> <meta property="og:url" content="https://bloglink/" /> <meta property="og:title" content="Post Title" /> <meta property="og:description" content="Woohoo description!" /> <meta property="og:image" content="https://imagelink/" /> However, after I save and reload the page, it changes to the following: <!-- Chrome Color meta tag --> <meta name="theme-color" /> <!-- Primary Meta Tags --> <title>Fancy Title</title> <meta name="title" /> <meta name="description" /> <!-- Open Graph / Facebook --> <meta /> <meta /> <meta /> <meta /> <meta /> <meta /> <meta /> I have a Twitter Card metadata in there too, and it does the same thing, though the script for Schema is not impacted. I actually tried other Plugins that offer a similar service just incase this one needed to be updated, but they are doing nearly the same thing (for example, I tried Add Custom Codes – Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript , and removed all the property tags, but left the strings like “title” and “description” in the Open Graph aswell, but still, removed crucial coding so the Rich Preview doesn’t work). While I appreciate that the above example plugin is not updated for 6.8, and yours is, they are very similar issues. For clarity, they I do these on individual posts and pages. I haven’t touched older posts because I don’t want to lose what’s already saved and working. So, yeah, I’m wondering if there have been any changes in 6.8 that are causing these properties to be stripped out when saving plugins that offer editing of Header/Footer codes? (I did consider whether it was theme-related, but I use the Ohio Theme on one site, and the Twenty Twenty-Three on the other, I use for simple short URL linking, but both produce the same outputs). Thanks for reading! 🙂 This topic was modified 1 year, 1 month ago by Ryn .
Hello @scribbleryn , Thank you for choosing Head & Footer Code for your project, and for the reporting the issue! It’s caused by the improved security introduced in version 1.4.0 of the plugin. The fix is included in the just released bugfix version 1.4.2. Please update and let me know if it works now as expected. Kind regards, Aleksandar
Morning Aleksandar! Thank you both for such a quick response and a quick fix. I have updated to 1.4.2 on my projects and now, the meta tags are saved and load correctly, retaining their properties. Thank you so much for this! I can get back to updating my pages and ensuring the correct information is shown my work is shared in social spaces. I really appreciate this as it is an important part of my creation process and driving traffic to my writing and projects. Thank you for your help in this! Have a great day!
Glad to hear it’s all working now after the update! Aleksandar This reply was modified 1 year, 1 month ago by Aleksandar Urošević .
Hello @scribbleryn , Thank you for choosing Head & Footer Code for your project, and for the reporting the issue! It’s caused by the improved security introduced in version 1.4.0 of the plugin. The fix is included in the just released bugfix version 1.4.2. Please update and let me know if it works now as expected. Kind regards, Aleksandar
Morning Aleksandar! Thank you both for such a quick response and a quick fix. I have updated to 1.4.2 on my projects and now, the meta tags are saved and load correctly, retaining their properties. Thank you so much for this! I can get back to updating my pages and ensuring the correct information is shown my work is shared in social spaces. I really appreciate this as it is an important part of my creation process and driving traffic to my writing and projects. Thank you for your help in this! Have a great day!
Glad to hear it’s all working now after the update! Aleksandar This reply was modified 1 year, 1 month ago by Aleksandar Urošević .