Reputation: 21
I changed the HTML structure of Elementor through the wp_posts table in the database, but there were no changes happening on the page. So, I deleted the meta value from the wp_postmeta table. Now I can see the changes, but the CSS is gone. How can I solve this problem? I want the changes to take place on the page without losing the CSS.
Upvotes: 0
Views: 178
Reputation: 1
elementor saves the css in the wp_postmeta record where the meta_key='_elementor_page_settings' The data in the meta_value field is a php serialised string... it isn't just plain css. I have had issues where it gets corrupted and I've had to clean up the serialised string and update the data. If you mess it up, elementor will completely ignore the css and revert to a default in your theme... so be sure to back it up first. there are other post_meta records for the same post_id which store other settings for the page, but the _elementor_page_settings holds the css, and in some cases it holds global colors and site settings. The globals are stored against the Default Kit post, which in my case was post_id=5.
I hope that helps.
Upvotes: 0