Site logo

[Support request] Cleaning up database data

Home Forums Support [Support request] Cleaning up database data

Home Forums Support Cleaning up database data

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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
    Sam

    #2420206
    Ying
    Staff
    Customer Support

    Hi 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.

    #2420268
    Sam

    I do use a child theme…

    #2420290
    Ying
    Staff
    Customer Support

    Then..it depends on you if you still need that CSS or not.

    #2421122
    Sam

    But why are they trashed? Also, what part of generatepress do they relate to?

    #2421438
    David
    Staff
    Customer Support

    Hi there,

    Those entries come from WordPress not the Theme.

    custom_css is where the Customizer > Additional CSS is stored.
    WP saves the custom_css against the current theme option. Which is why you see the generatepress_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.

    #2421499
    Sam

    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

    #2422628
    David
    Staff
    Customer Support

    Theres 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 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.