While most changes can be made with settings in the WordPress editor, you may prefer to use CSS to customize your site if you have experience writing CSS code. This guide will show you how to edit your website with CSS.
This feature is available on sites with our WordPress.com Premium, Business, and Commerce plans, and the legacy Pro plan. For sites on the Free and Personal plans, upgrade your plan to access this feature.
CSS stands for Cascading Style Sheets. It is a markup language that controls the appearance of HTML elements on a web page. WordPress includes a CSS editor to add your own CSS styles to override the default styles of your theme.
There is almost endless potential for what you can do with CSS to modify the design of a website. However, it requires knowledge of how CSS and HTML work (or at least a willingness to learn.) The CSS guide from MDN web docs is a great place to start learning CSS.
If you’re not interested in learning CSS, choose a block theme for your site. These themes provide the most flexible options to customize any aspect of your website’s design without any knowledge of computer code.
There are two methods to access your site’s CSS editor, depending on your theme. Each method is explained below.
To determine which section of this guide to follow, visit your dashboard and check under Appearance on the left side. If you find Editor here, use the Site Editor section of this guide. Otherwise, use the Customizer instructions.
You can add custom CSS to your site from the Styles panel. Follow these steps to add custom CSS:
- Visit your site’s dashboard.
- Go to Appearance → Editor.
- Click the preview on the right to open the editor.
- Click the Styles icon at the top-right of the editor.
- Click the ellipses (⋮) to open the More menu and select “Additional CSS”
- Type or paste your CSS into the text box provided.
- Click the “Save” button at the top right of the screen to save the CSS to your site.
You can preview the impact of your CSS changes on any block type by loading the Style Book. Click the icon of an eye to toggle the Style Book preview on or off.

To determine which section of this guide to follow, visit your dashboard and check under Appearance on the left side. If you find Editor here, use the Site Editor section of this guide. Otherwise, use the Customizer instructions.
Previous versions of your CSS are saved along with other style changes. To restore a CSS revision in the Site Editor, follow these steps:
- Visit your site’s dashboard.
- Go to Appearance → Editor.
- Edit any template or template part.
- Click the “Styles” icon (a circle with one white and one black half.) located in the top toolbar of the Site Editor.
- Click the “Revisions” icon, which appears as a clock with an arrow pointing counterclockwise. The icon will only appear if there are saved revisions.
- Click a revision to see how your site styles appeared in that version.
- Click the “Apply” button when you locate the revision you want to use.
- Click the “Save” button to save your changes.
If you would like to restore only the previous CSS but not any other styles in a revision, copy the CSS after applying a revision. Then, reload the Site Editor without saving anything, paste the copied CSS into Additional CSS, and save it.

In Site Editor themes, you can apply CSS code to specific blocks site-wide by following these steps:
- Visit your site’s dashboard.
- Navigate to Appearance → Editor.
- Click on the “Styles” menu option.
- This time, select the “Blocks” section to access settings to customize the appearance of specific blocks for the whole site.
- Click the name of the block you want to add CSS to. You can also locate your desired block type using the search box.
- Scroll down to the bottom and click on “Advanced“.
- In the box labeled “Additional CSS“, type CSS that will apply to all instances of that block type. When adding per-block CSS, you do not need to include a CSS selector — just add the property and value. An example is included in the video above.
- Click the “Save” button at the top right of the screen to save the CSS to your site.
The footer credit should not be modified with CSS. You can remove or modify the footer credit with settings depending on the type of theme the site uses:
- If your site uses a block theme, you can edit or remove the footer credit using the Site Editor — no CSS required.
- If your site uses a classic theme, you can change the footer credit to a minimalist WordPress logo. You can hide the credit if the site has a Business or Commerce plan subscription.
Yes, on plugin-enabled sites only.
You can choose your website fonts using the options with your theme. When working with CSS, you are limited to those two web fonts on the front end. However, you can add additional fonts using third-party font plugins.
Yes. You can upload an image to your Media Library and refer to it by its direct URL from within your CSS stylesheet. Here’s an example of how to use a background image in your stylesheet:
div#content {
background-image: url('http://example.files.wordpress.com/1999/09/example.jpg');
}
We recommend making CSS edits using the CSS editor, as explained in this guide above. When you add CSS using this method, it overrides CSS rules from your theme’s stylesheet. This is a safe method that makes it easier to debug CSS conflicts and restore previous versions of CSS you’ve added.
If you are proficient in editing theme files directly, you can do so via SFTP or by creating a child theme. We recommend testing changes on a staging site before applying them to your live site.
All upgrades on WordPress.com are renewed yearly. Should you cancel your subscription, your custom CSS will still be saved, but it will no longer be applied to your site for others to see. If you would like them re-applied to your site, you can repurchase your plan, and the styles will be re-applied automatically, provided you haven’t changed themes. If you have changed themes, you will find your past CSS in the CSS revisions.