- This topic has 7 replies, 3 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
November 16, 2022 at 10:17 am #2418532
Sam
Hello, I am cleaning up my database and I can see some trashed posts in my DB that refer to GeneratePress. See here: https://snipboard.io/vHTJrg.jpg
Can you confirm these are just parts of posts that have been trashed and can be deleted or are they part of the general settings for generatepress and should be left alone?
thanks
SamNovember 17, 2022 at 11:03 am #2420206Ying
StaffCustomer SupportHi Sam,
It seems from the child theme of GP, not the GP theme itself.
If you are not using the child theme anymore, feel free to remove them.
November 17, 2022 at 11:32 am #2420268Sam
I do use a child theme…
November 17, 2022 at 11:53 am #2420290Ying
StaffCustomer SupportThen..it depends on you if you still need that CSS or not.
November 18, 2022 at 3:02 am #2421122Sam
But why are they trashed? Also, what part of generatepress do they relate to?
November 18, 2022 at 6:45 am #2421438David
StaffCustomer SupportHi there,
Those entries come from WordPress not the Theme.
custom_cssis where the Customizer > Additional CSS is stored.
WP saves thecustom_cssagainst the current theme option. Which is why you see thegeneratepress_child, if you switch to another theme and add some Additional CSS then you would see entries for that theme name.Theres probably multiple entires and trashed entries as WP will save drafts of changes to the database.
Simple option:
1. copy the CSS out of the Additional CSS.
2. delete ALL those entries*
3. Add the CSS back in or better still put it in your Child Theme stylesheet.*Note – i wouldn’t usually tell users to delete from their database, so i would advise doing this on a backup.
November 18, 2022 at 7:25 am #2421499Sam
OK got it that makes sense. I wanted to be sure that deleting these would not delete the additional CSS in the customizer.
What is the best way to handle this custom CSS with generatepress? In the child theme, is that better? I know Tom has a little plugin for it as well… Any advice is gratefully received as I don’t really like writing CSS in the customizer.
thanks
November 19, 2022 at 3:03 am #2422628David
StaffCustomer SupportTheres no real difference, performance wise between Customiser, Simple CSS plugin or Child Theme.
Especially as most sites use some kind of CSS optimization.
And GP doesn’t do anything different with any of those options.Personally, as you have the child theme styles.css i would use that 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.