Custom CSS

Custom CSS is user-defined stylesheets that allow you to customize the appearance of blocks, elements, and widgets on a website overriding the default settings. This customization can include changes to colors, fonts, layout, spacing, and other design elements.

Ultimate Blocks allow you to add Custom CSS to all of its blocks. This documentation will show you how to add Custom CSS to the plugin blocks.

Finding Custom CSS #

To explain this documentation, we have used the Image Slider block and created a slider. Keep the block selected. 
Go to the Styles tab on the right sidebar. You’ll see the Custom CSS option at the end.

Finding Custom CSS

Adding Custom CSS Stylesheets #

Expand the Custom CSS section by clicking the arrow sign. You’ll get the stylesheet board where you can add your desired Custom CSS codes.

Adding Custom CSS Stylesheets

# How to Write Custom CSS Code #

If you have knowledge of HTML/CSS, you can easily write codes Custom CSS code for your web element. But if you are a no-code user, you’ll feel like in trouble.

But no worries! You can get help from ChatGPT. You just have to write a suitable command on how you want to customize your web element. The AI tool will generate the code which you just have to copy and paste on the stylesheet board.

Step 01: Find the Class of Web Element #

First, find the class of the block, widget, or element from the frontend of your page. To do this, right click your mouse on the frontend of your desired page and select Inspect.

Go to Inspect on the frontend of your page

A new section will open up at the bottom end of the page. Click the Select an Element option. 

Take your cursor and hit your desired web element. You’ll get the class of the element in the new section opened below.

Find the Class of the web element

Step 02: Copy-Paste the Class on ChatGPT and Write Your Command Around It #

Copy-paste the class of the element on ChatGPT. Write your command around it and click the enter button. The Code will be generated within a few seconds.

Copy-Paste the Class on ChatGPT and Write Your Command Around It

Step 03: Paste the Code on the Stylesheet Board #

Go to the Custom CSS section next to the Gutenberg editor. Paste the code you have generated just a while ago. You’ll see changes on your widget.

Paste the Code on the Stylesheet Board

Thus, you can use the Custom CSS extension with the Ultimate Blocks plugin.

Conclusion #

Custom CSS provides the flexibility to implement design changes that aren’t possible with default styles or templates. This enables you to create a more intuitive, visually appealing interface that can enhance usability and accessibility.

There are many other AI tools online alongside ChatGPT from where you can get help to generate Custom CSS code for your site.

What are your feelings
Updated on May 23, 2024