I edited the theme's style.css and lost everything after the last update. What is the right place for my own changes?
Where do I put custom CSS so that it survives theme updates?
Solution Go to post #3
Never edit the theme files themselves. Use a child theme or the Custom CSS box in Theme settings:
/* Theme settings > Custom CSS */
.site-header {
background: #14213d;
}
The Custom CSS box is stored in the database, so updates do not touch it. For bigger changes, create a child theme with its own style.css.
6 answers
Never edit the theme files themselves. Use a child theme or the Custom CSS box in Theme settings:
/* Theme settings > Custom CSS */
.site-header {
background: #14213d;
}
The Custom CSS box is stored in the database, so updates do not touch it. For bigger changes, create a child theme with its own style.css.
Can you post a screenshot of the settings page? Hard to tell otherwise.
I edited the theme's
style.cssand lost everything after the last update. What is the right place for my own changes?
Did you try this on a fresh copy of the site? That would tell you whether it is the content or the setup.
Try this first, it is the most common cause:
php -v
php -m | grep -i mysqli
Same issue here on a cheap shared plan. The host had to enable an extension for me.
Worked for me, thanks @demo-lena. I had been fighting this for two evenings.
Worked, but I had to log out and back in first.