lisa
(@contentiskey)
on the 2 sites, is the block structure identical before and after update?
what version was the update from?
-
This reply was modified 3 years, 9 months ago by
lisa.
-
This reply was modified 3 years, 9 months ago by
lisa.
@stirdigital This may be something you already tried, but have you verified that the content on the staging website is exactly the same as the content on the production website? I noticed some of the HTML is different between the two sites such as https://d.pr/i/GYnLtu on www vs https://d.pr/i/GYnLtu on staging. This may very well have to do with Gutenberg changing the markup, but I’d suggest syncing the content of the staging site with the production site before digging in too deeply into the code.
It’s also possible that the custom CSS that was written for the buttons are targeting elements that were renamed, though it’s difficult for me to tell by looking at the page.
I hope those suggestions help put you on the right path to finding a solution.
Thanks.
@contentiskey – the structure is the same.
@bengreeley – I’m seeing the difference is because there’s an automatic wp-container-id class that is added to the blocks now following an update (WP 5.9 I think). The live site is still on 5.8.3, but the test site is on 6.1. In doing a little digging, I’ve noticed a number of other users have seen this cause layout issues on their sites but not sure how best to address. Any thoughts appreciated.
@stirdigital You may have luck asking your question in the Gutenberg support forum at https://wordpress.org/support/plugin/gutenberg/.
You could always update your custom CSS to work with the new structure (not ideal, I know). Another possibility is upgrading WordPress but installing an older version of the Gutenberg plugin from https://wordpress.org/plugins/gutenberg/advanced/ (scroll to the bottom of the page). This will let you lock into a specific version of Gutenberg while the rest of WordPress can be updated. Again, this is not an ideal solution, but it could buy you time to update your CSS to work with the new markup.
I wish I had more insightful news, good luck, and hopefully, the Gutenberg threads can point you in the right direction.