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
- Show the terms of the hierarchical taxonomy
- WordPress redirects page query parameter in URL
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- Pagination in single.php
- For some time, some of my pages do not display the content anymore. Any idea where this could be coming from?
- WordPress navigation wont appear with wp_head
- How do you remove header sitewide from mobile only?
- OOP PHP class extends TwentyTwenty_Customize in Child Theme
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Grabing default from cuztomizer php file instead of other php script
- PHP inside echo HTML
- Need help for some PHP code
- How do you get the current post taxonomy so I can get the current post taxonomy? into a variable to THEN loop through all post with that taxonomy.,
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Illegal string offset in PHP function in via Theme Customizer
- How do you create a custom category widget that you can style?
- How do I edit the terms output args or array data?
- Header is not displaying on certain pages of wordpress theme [closed]
- How to extend SelectControl with data from my theme
- How to change basename url for wp-admin?
- how to replace h1 entry title with h2 in category pages only
- WordPress single.php get_header not working
- excep tonly one css, don’t load any css
- url not using query string no longer working
- Not able to remove caption shortcode from the content
- How to use wp_get_attachment_image or wp_get_attachment_image_src instead of $instance[‘single_feature_image_uri’]
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Proper way to remove html code on child theme
- Child-Theme Category View with modified permalinks (%category% removed)
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- Weird fonts showing which are coming from database
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Check if current post in loop is last on current page
- “WARNING: Found @$ in the file __ Possible error suppression is being used
- How can I prevent a shortcode div from extending beyond its boundaries?
- 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’?
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- is_user_logged_in returns false when I access certain pages
- Unable to retrieve get_author_posts_url
- Limit the number of characters/words in an excerpt for a related posts section
- How can I edit a php custom page template to work in other themes?
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- How to have different headers.php files based on the display page
- Display post date also if the date it’s the same for each post
- REST API custom endpoint to fetch pages and posts not working
- Submit remote form to wordpress REST API and save data to custom post type
- My single.php page skips the first div tag
- How to print all the inline styles in the WP_Styles instance together with their keys?
- Looping through dummy posts and showing them in the main index.php
- Exclude category from woocommerce product category list
- Create dashboard widget for custom theme support
- Create category after theme setup and modify the default one
- Should I set a page as “No-index” if I include it’s content within the front-Page.php via this method?
- Trying to get pagination working on WP_Query() post grid
- alternate left – right content inside the loop
- How to add locations input to user profile?
- Store user form submitted information in post type
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Display attached images of a page or post that are insetred using gallery
- Add a custom link to each image in WordPress gallery
- add custom link to gallery images
- register dependency css and js inside a plugin class
- Change CSS Variable value in Theme Customizer Live Preview