For the Theme ‘Twenty Twenty Three’, we can add CSS in two ways.
1.customize.php
- we need to add customize.php at the WordPress dashboard URL.
https://example.com/wp-admin/customize.php
- At the left sidebar, select Additional CSS.
- Add the CSS code and Click on Publish.
2. Header Templates
- Navigate to ‘Appearance’ –> ‘Editor‘
- Select “Site” and at the Header, Click on add block and add a custom HTML.
- Add the CSS code like the below image.
- Click on Save.