• Resolved FeliceAntonio

    (@antonio_09)


    Hello.
    If I don’t wrong, the CSS customization of child theme in WordPress is stored in table wp_options
    SELECT * FROMwp_optionsWHEREoption_nameLIKE 'theme_mods_%'
    Is there a way to decrypt the code to CSS or is not possible? Am I missing something?!
    Thanks.

    • This topic was modified 3 years, 5 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You are partially wrong.
    The options table contains an entry for each theme you have saved options for, named like theme_mods_. If there is any Additional CSS, that entry will have a field with the ID of the custom_css post which is in the posts table as a custom_css post type.
    You can use the Customizer Export/Import plugin to save the current theme’s options to a file. It will include the Additional CSS in as wp_css. You can import that to a different site or a child theme. You can also look in the code of the plugin to see how it is exported.

    • This reply was modified 3 years, 5 months ago by Joy. Reason: forgot link
    Thread Starter FeliceAntonio

    (@antonio_09)

    Thank you very much -:)

    Thread Starter FeliceAntonio

    (@antonio_09)

    Good to know.
    For various problems I have installed completely WordPress in a subdomain, I exported the most important tables which fortunately worked correctly, and copied all the files on the primary domain.
    In the previous database I had errors.
    It was easier this way than looking for errors, and correcting them, without knowing where they were.
    Regards!

    • This reply was modified 3 years, 5 months ago by FeliceAntonio.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Decrypt CSS code stored in database’ is closed to new replies.