{"id":28734,"date":"2024-05-21T22:04:59","date_gmt":"2024-05-21T16:04:59","guid":{"rendered":"https:\/\/ultimateblocks.com\/?post_type=docs&#038;p=28734"},"modified":"2024-05-23T00:40:19","modified_gmt":"2024-05-22T18:40:19","password":"","slug":"custom-css","status":"publish","type":"docs","link":"https:\/\/ultimateblocks.com\/docs\/custom-css\/","title":{"rendered":"Custom CSS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Finding Custom CSS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To explain this documentation, we have used the <a href=\"https:\/\/ultimateblocks.com\/docs\/image-slider-block\/\" target=\"_blank\" rel=\"noreferrer noopener\">Image Slider block<\/a> and created a slider. Keep the block selected.\u00a0<br>Go to the <strong>Styles tab<\/strong> on the right sidebar. You\u2019ll see the <strong>Custom CSS<\/strong> option at the end.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"655\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Finding-Custom-CSS.png\" alt=\"Finding Custom CSS\" class=\"wp-image-28735\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Finding-Custom-CSS.png 1280w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Finding-Custom-CSS-300x154.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Finding-Custom-CSS-1024x524.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Finding-Custom-CSS-768x393.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Adding Custom CSS Stylesheets<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Expand the Custom CSS section by clicking the arrow sign. You\u2019ll get the stylesheet board where you can add your desired Custom CSS codes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"655\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Adding-Custom-CSS-Stylesheets.png\" alt=\"Adding Custom CSS Stylesheets\" class=\"wp-image-28736\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Adding-Custom-CSS-Stylesheets.png 1280w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Adding-Custom-CSS-Stylesheets-300x154.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Adding-Custom-CSS-Stylesheets-1024x524.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Adding-Custom-CSS-Stylesheets-768x393.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"># How to Write Custom CSS Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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\u2019ll feel like in trouble.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 01: Find the Class of Web Element<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">First, <strong>find the class<\/strong> of the block, widget, or element from the frontend of your page. To do this, <strong>right click your mouse<\/strong> on the frontend of your desired page and <strong>select Inspect<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1270\" height=\"652\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Go-to-Inspect-on-the-frontend-of-your-page.png\" alt=\"Go to Inspect on the frontend of your page\" class=\"wp-image-28737\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Go-to-Inspect-on-the-frontend-of-your-page.png 1270w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Go-to-Inspect-on-the-frontend-of-your-page-300x154.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Go-to-Inspect-on-the-frontend-of-your-page-1024x526.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Go-to-Inspect-on-the-frontend-of-your-page-768x394.png 768w\" sizes=\"auto, (max-width: 1270px) 100vw, 1270px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A new section will open up at the bottom end of the page. <strong>Click the Select an Element<\/strong> option.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Take your cursor and <strong>hit your desired web element<\/strong>. You\u2019ll get the class of the element in the new section opened below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1336\" height=\"691\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Find-the-Class-of-the-web-element.png\" alt=\"Find the Class of the web element\" class=\"wp-image-28738\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Find-the-Class-of-the-web-element.png 1336w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Find-the-Class-of-the-web-element-300x155.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Find-the-Class-of-the-web-element-1024x530.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Find-the-Class-of-the-web-element-768x397.png 768w\" sizes=\"auto, (max-width: 1336px) 100vw, 1336px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 02: Copy-Paste the Class on ChatGPT and Write Your Command Around It<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"655\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Copy-Paste-the-Class-on-ChatGPT-and-Write-Your-Command-Around-It.png\" alt=\"Copy-Paste the Class on ChatGPT and Write Your Command Around It\" class=\"wp-image-28739\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Copy-Paste-the-Class-on-ChatGPT-and-Write-Your-Command-Around-It.png 1280w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Copy-Paste-the-Class-on-ChatGPT-and-Write-Your-Command-Around-It-300x154.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Copy-Paste-the-Class-on-ChatGPT-and-Write-Your-Command-Around-It-1024x524.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Copy-Paste-the-Class-on-ChatGPT-and-Write-Your-Command-Around-It-768x393.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 03: Paste the Code on the Stylesheet Board<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the Custom CSS section next to the Gutenberg editor. Paste the code you have generated just a while ago. You\u2019ll see changes on your widget.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"655\" src=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Paste-the-Code-on-the-Stylesheet-Board.png\" alt=\"Paste the Code on the Stylesheet Board\" class=\"wp-image-28740\" srcset=\"https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Paste-the-Code-on-the-Stylesheet-Board.png 1280w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Paste-the-Code-on-the-Stylesheet-Board-300x154.png 300w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Paste-the-Code-on-the-Stylesheet-Board-1024x524.png 1024w, https:\/\/ultimateblocks.com\/wp-content\/uploads\/2024\/05\/Paste-the-Code-on-the-Stylesheet-Board-768x393.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thus, you can use the Custom CSS extension with the Ultimate Blocks plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Custom CSS provides the flexibility to implement design changes that aren&#8217;t possible with default styles or templates. This enables you to create a more intuitive, visually appealing interface that can enhance usability and accessibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many other AI tools online alongside ChatGPT from where you can get help to generate Custom CSS code for your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_eb_attr":"","footnotes":""},"doc_category":[325],"doc_tag":[],"coauthors":[201],"class_list":["post-28734","docs","type-docs","status-publish","hentry","doc_category-extensions"],"year_month":"2026-06","word_count":446,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Istiak Rayhan","author_nicename":"istiak","author_url":"https:\/\/ultimateblocks.com\/author\/istiak\/"},"doc_category_info":[{"term_name":"Extensions","term_url":"https:\/\/ultimateblocks.com\/docs-category\/extensions\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/docs\/28734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/comments?post=28734"}],"version-history":[{"count":1,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/docs\/28734\/revisions"}],"predecessor-version":[{"id":28741,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/docs\/28734\/revisions\/28741"}],"wp:attachment":[{"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/media?parent=28734"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/doc_category?post=28734"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/doc_tag?post=28734"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/ultimateblocks.com\/wp-json\/wp\/v2\/coauthors?post=28734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}