Method 1: WordPress Customizer (Best & Safest)
Best for: Beginners and making small, global CSS changes.
Steps:
- Log in to your WordPress Dashboard.
- Navigate to Appearance → Customize.
- Click on the Additional CSS tab.
- Paste your custom CSS into the editor.
- Click Publish.
Method 2: Block Editor (Gutenberg) – Page Level CSS
Best for: Applying styles to specific elements on a single page or post.
Steps:
- Edit the specific page or post.
- Select the block you wish to style.
- Open the Block Settings in the right-hand panel.
- Expand the Advanced section.
- Assign a Custom CSS class (e.g.,
my-custom-style). - Save the page.
- Go to the Customizer (Method 1) and write the CSS for that class.
Method 3: Elementor (Free Version)
Best for: Users building their site with the Elementor page builder.
Steps:
- Select Edit with Elementor on your page.
- Click on the specific element you want to style.
- Navigate to Advanced → CSS Classes.
- Enter a unique class name.
- Save your changes.
- Add the corresponding CSS via Appearance → Customize → Additional CSS.
Method 4: Child Theme (Recommended for Developers)
Best for: Large-scale projects and permanent CSS changes that survive theme updates.
Steps:
- Create and activate a child theme.
- Locate and open the
style.cssfile within the child theme folder. - Add your custom CSS styles.
- Save the file.
Method 5: Theme File Editor (Direct Editing)
Best for: Quick technical fixes. Note: This is generally not recommended as changes may be lost during theme updates.
Steps:
- Go to Appearance → Theme File Editor.
- Select the style.css file from the right sidebar.
- Append your CSS to the bottom of the file.
- Click Update File.
Method 6: Page Builders (Theme-Specific CSS)
Best for: Users of lightweight themes like Astra, GeneratePress, or Kadence.
Steps:
- Navigate to Appearance → Customize.
- Open your specific Theme Settings.
- Look for a section labeled Custom CSS or Advanced Styling.
- Insert your code and click Publish.
Method 7: Add Custom CSS via Plugin
Best for: Non-technical users who want a dedicated interface for CSS management.
Steps:
- Install and activate a Custom CSS plugin (e.g., Simple Custom CSS).
- Open the plugin settings from the dashboard.
- Add your CSS code to the provided text area.
- Click Save.