• HannaWP

    (@hannawp)


    Hi!
    After the latest update of the Twenty Ten theme all my CSS changes are gone (didn’t put them in a child theme, I know now…) I made a backup before though, through BackWPup. Can anyone tell me where I find the CSS changes in that backup and if I can just copy paste them into the theme customizer to have a quick solution? Of course, I will put them in the child theme as well, but I need a quick solution now.

    Thanks:)
    Hanna

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    unzip your backup locally and find wp-content/themes/twentyten/style.css.

    Thread Starter HannaWP

    (@hannawp)

    Thanks Steve! I was wondering if there is an extra file in the backup for the css changes made through Dashboard/Design/Customizer/Additional CSS where I can just copy-paste the changes I made instead of restoring the whole style css file?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s in the database someplace, probably a row in wp_options. in wp_posts. Custom CSS changes are a post of post type “custom_css”

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    more info:

    In a post of custom_css post type. The post ID is then stored as custom_css_post_id with other theme modifications via set_theme_mod().

    wp_get_custom_css() can be used to retrieve custom CSS by theme slug, e.g. wp_get_custom_css( 'twentyseventeen' ).

    Thread Starter HannaWP

    (@hannawp)

    Thanks, that solved it! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restore CSS only from backup’ is closed to new replies.