In technical terms, the “wp_enqueue_scripts” hook is used to load the style.css file of the parent/child theme for the frontend of the website. On the other hand, the “admin_enqueue_scripts” hook is used to load CSS/JS files in the admin dashboard.
Therefore, if you add any CSS code to the child theme’s style.css file, it will not be loaded on the edit post page, which means you won’t see the visual output of your style. I hope that makes sense. Thank you.
The styles you’re adding to the child theme’s style.css may not be specific enough to override the default styles applied by the editor.
In the WordPress editor, there may be more specific styles applied to the elements, and if your styles are not specific enough, they might not take precedence.
Here are a few things you can try:
1.Add more specificity to your CSS rules. For example, you can prefix your selectors with a more specific class or ID that is unique to the editor. This can help ensure that your styles are applied in the editor.
2. Although not recommended to use !important as a solution, you can try using it to force your styles to override existing ones. However, use it with caution, as it can make your styles harder to maintain.