The answer is, AFAIK, that you shouldn’t. It goes against how block themes work. Rather you should try to get your css to work with the block theme. What are the issues with getting your CSS to work with the new editor?
You can add it as style.css in your child theme, or you can add custom block styles with a simple plugin. The later is my prefered method as it works quite well with the block editor, and as a plugin it can be used even if I switch themes.
Related Posts:
- Need advice on theme customizer and child themes
- Need help setting default setting value for radio button in theme customizer
- Is having multiple theme customizers for different pages possible?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- is there a simple way to list every templates / php files used to generate a specific page?
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Design view breaking on Pages
- Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
- Understanding WordPress child theme custom JS loading
- Show different Customizer Settings on Page-Tamplates
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- How do I get current page ID in WordPress customizer file?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Customizer: active_callback and sanitize_callback incompatibility?
- Skt full width basic slideshow problem
- WordPress Customizer Default Image
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- How to specify the path for require_once in a child theme?
- Warning: printf(): Too few arguments in helpers.php file
- Removing “Powered by” footer using child theme PHP [closed]
- Trying to change featured image from 180×180 to full width on home page
- Getting text from custom field from customizer
- Why would the child theme load in the Customize preview, but not on the site itself?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- WordPress child theme, creating a custom php template page
- Customizer: How to Sanitize a Decimal Number Range
- Add Text Area To Child Theme’s Home Page
- Use Custiomizer to setup meta theme color tag
- How to add button to top of theme customizer?
- How to store the_post_thumbnail() value in a variable
- Capture the Selected Radio Button Value between two files in wordpress theme
- Why have on every line
- Childs PHP files not overwriting Parent’s PHP files
- Is it possible to disable a function of a parent theme?
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- reason of splitting theme files to multiple files
- Add footer.php to WordPress child theme
- Customizer Show/Hide Logo and Site Title
- Use different javascript files for each page on website
- do not show web page section when using advanced custom fields pro
- Want to create Child theme, but already edited Parent theme css files and some php files
- Switching between custom templates in a post type of the admin menu
- Custom category code not showing all posts
- Adding country tags automatically
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- Customizer: Output default value in Customizer CSS
- WordPress does not load page.php, return 404.php
- Add child pages of parent to navbar PHP
- From where the header-text can be changed in WordPress custom header?
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- How to use my style.css file outside of wordpress subdomain?
- How to remove the cufon script from Dzonia Lite theme [closed]
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Improve page speed loading using CDN and async or defer attribute
- Populate editor with some content of a page with a page template
- Customizer: Category Select Sanitize
- Displaying recent posts on static page with template-part via shortcode
- get_template_part for specific page
- How do I create my own .php file with a code part and echo it on different pages?
- get_template_part() not firing within a switch statement when template has new WP_Query
- How to call multiple functions from multiple files into a WordPress page template [closed]
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- What is the best way to define constant options for a theme?
- Avada Child Theme Development
- Help Fallback (thumbnail)
- get_page_templates only return templates with “home” in the filename
- Show different website layout if no sidebar added
- How to make sure relative URL works when site is not on root domain?
- How do you remove header sitewide from mobile only?
- PHP inside echo HTML
- remove_action from parent theme using child theme functions.php
- Check if current post in loop is last on current page
- How to change PHP variables with AJAX request in WordPress
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- is_user_logged_in returns false when I access certain pages
- REST API custom endpoint to fetch pages and posts not working
- Exclude category from woocommerce product category list
- Trying to get pagination working on WP_Query() post grid
- How to add locations input to user profile?
- How to let mobile navigation menu close when link is clicked?
- If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent’s header.php?
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- make an array in wordpress cusmization api?
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Calling PHP function doesn’t work in index.php
- Child theme functions.php file change database entries
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- Listing current pages subp page in list items in the sidebar
- Add CSS class to PHP Statement
- Load slideshow.css file only if Slideshow is checked / on
- Divi – add title to mobile menu button
- functions.php doesn’t load all custom theme assets
- Shortcode Displays 2 times
- How to get ACF field to show up on all posts on front end?