• chrisova

    (@chrisova)


    Hello, I’m using the new WordPress Block Theme and trying to understand that when WordPress twenty-twenty-three theme performs an update, will the custom CSS be removed? And is it still best to created a child-theme for all custom CSS, or Html updates?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It depends on where you placed your custom CSS. If you added it to style.css or any other theme file, then an update will remove your alterations. A child theme is one way to protect your custom work during updates.

    If your custom work is solely CSS, you can place it in the customizer’s Additional CSS section. However, block themes typically hide the customizer and it does not appear to be accessible. But it’s just hidden, you can manually access it by typing its URL (your-domain.tld/wp-admin/customize.php) into your browser’s address bar.

    A simple plugin that hooks ‘customize_register’ action will also expose the customizer. The callback added needn’t do anything, adding it is enough.

Viewing 1 replies (of 1 total)

The topic ‘wordpress and theme updates with block themes’ is closed to new replies.