...

CSS Organizer

Initial Set-Up

Initial set-up is easy. In your admin area, navigate to Appearance > CSS Organizer.

  • Theme Information: Shows your currently active theme name and version, and whether it is a block theme or classic theme.
  • Force Using WP Customizer for Block Themes: (Block Themes Only): By default, block themes use the new Site Editor, which adds the CSS Organizer as a panel in the template editor. Enable this option to force using the WP Customizer instead. This option is not on Classic themes since the WordPress Customizer is included by default.
  • Hide Default “Additional CSS” Option on WP Customizer (WP Customizer Only): You can hide the “Additional CSS” section on the Customizer if you want to simplify things. It remains available by default so you can copy CSS from there into your CSS Organizer sections if you prefer.
  • Important Body Tags (WP Customizer Only): Specify important body tags for the CSS Organizer’s body class dropdown. Separate multiple tags with commas. Tags ending with a hyphen (-) will match any class that starts with that prefix.
    • Default: home, blog, archive, single, page, postid-, page-id-, logged-in, page-template-
  • Mobile Screen Sizes (WP Customizer Only): Specify mobile screen sizes for the CSS Organizer’s media query buttons. Separate multiple sizes with commas.
    • Default: 480px, 768px, 1024px, 1280px
  • Clean Up on Uninstall: Enable this option to have the plugin remove all its data from the database when you uninstall it, including settings and custom CSS.
  • CSS Organizer Label: You can replace the “CSS Organizer” label in your WP Customizer.
  • CSS Sections: Determine which sections you would like to organize your CSS in. You can change the label, but after you save a section the slug will become permanent. You can also delete sections or sort them by dragging the | = | markers on the left of each section.
  • Import / Export: Export your CSS sections to a JSON file or import them from another site. Importing will overwrite your current settings and CSS, and cannot be undone.

Adding CSS

Block Themes

Navigate to Appearance > Editor. Then click on the right panel with the template on it to enter the template editor.

Click on the three-dots menu on the top-right corner, and select CSS Organizer.

You can now click the star on the top-right of the panel to pin it to the top.

Expand the sections to add the CSS for each section.

Classic Themes (or Block Themes with “Force Using WP Customizer for Block Themes” enabled)

Navigate to Appearance > Customize or go to the page you want to want to edit on the front-end of your site and click on the Customizer link in the admin toolbar at the top of the screen. It has a paintbrush icon.

The WP Customizer will appear on the lefthand of the screen. This is where a lot of your site options are held. Scroll down until you see “CSS Organizer” (or whatever you labeled it in the settings above).

You will see all of the sections you have set. Click on a section and add your CSS. It works exactly like the default “Additional CSS” section with a live preview, but with a toolbar at the top. Note that some themes will be overriding some selectors, so you might have to use the !important tag on your CSS in some places.

  • Expand Buttons: This allows you to expand to 30%, 50%, or 80% of the screen to give you more space to work with in the side panel. 18% is the default size. If these sizes are not what you want, you can use a developer hook (see developer docs) to change these options.
  • Media Screen Sizes: This allows you to quickly add or wrap selected CSS with an @media snippet for various screen sizes. Sizes can be changed in Settings.
  • Body Class Selector (<body>): Allows you to select a body class from the page into the field where your cursor is. The starred items at the top are considered “important,” which you can change in Settings as well.
  • Variable Picker (–x): This will allow you to paste any CSS variables you have set in any section into the field where your cursor is. By default, a Root section is included so you can add your own root variables in a separate space, but it is not required. You can set variables in any section and have the them show up here.

That’s it! Just Publish your edits at the top of the panel and you’re done.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.