{"id":12344,"date":"2018-01-30T13:13:41","date_gmt":"2018-01-30T18:13:41","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=12344"},"modified":"2020-06-15T14:40:29","modified_gmt":"2020-06-15T18:40:29","slug":"how-to-add-additional-css-classes-to-a-block-using-the-gutenberg-editor","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/wordpress-tutorials\/how-to-add-additional-css-classes-to-a-block-using-the-gutenberg-editor\/","title":{"rendered":"How to Add Additional CSS Classes to a Block using the Gutenberg Editor"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>Each block that you use in the Gutenberg editor can have additional CSS classes defined via the block properties. The following tutorial will show you how to find the option to <strong>add additional CSS classes using the Gutenberg editor<\/strong>.<\/p>\n<p class=\"alert alert-danger\">Note that the Gutenberg editor has been integrated directly into the WordPress Administrator dashboard as of <strong>WordPress version 5.0<\/strong>. It is now the default WordPress editor.<\/p>\n<p><em>Looking for an alternative to the Gutenberg Editor?<\/em> Try our <a href=\"https:\/\/www.boldgrid.com\/wordpress-page-builder-by-boldgrid\">WordPress Page Builder<\/a> that uses a different approach to <a href=\"https:\/\/www.boldgrid.com\/wordpress-page-builder-by-boldgrid\/wordpress-blocks\/\">WordPress Blocks<\/a> to help build your website with ease! Otherwise, here are the steps needed to continue this tutorial using WordPress with the current WordPress Editor:<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><a href=\"http:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-introduction\/logging-into-wordpress-dashboard\" target=\"_blank\" rel=\"noopener noreferrer\">Login to your WordPress Administrator Dashboard<\/a>.<\/li>\n<li>Open an existing page or post, or create a new page or post as needed.<\/li>\n<li>Click on the <strong>Block<\/strong> that you wish to modify.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-16361 size-medium\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-300x147.png\" alt=\"Add Additional CSS to a Block using Gutenberg block options\" width=\"300\" height=\"147\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-300x147.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-768x377.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-1024x502.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-250x123.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-550x270.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-800x392.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-367x180.png 367w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-612x300.png 612w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block-1019x500.png 1019w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-click-block.png 1676w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>In the column at right click on the label <strong>Block<\/strong>. If you don&rsquo;t see the column, click on the gear icon in order to make the column appear.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-16362 size-medium\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-300x133.png\" alt=\"\" width=\"300\" height=\"133\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-300x133.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-768x341.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-1024x455.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-250x111.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-550x244.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-800x355.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-405x180.png 405w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-675x300.png 675w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css-1126x500.png 1126w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2018\/01\/12344-advanced-css.png 1677w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Scroll down until you see <strong>Advanced<\/strong> and then click on the drop-down arrow. You will then see the field labeled <strong>Additional CSS Class<\/strong>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Enter your CSS class here.<\/li>\n<li>Click on <strong>Update<\/strong> or <strong>Publish<\/strong> in order to save your entries.<\/li>\n<\/ol>\n<p>The use of <strong>Additional CSS classes<\/strong> can help to modify the look of the blocks used in Gutenberg, giving you endless options for additional creativity within your <a href=\"https:\/\/www.boldgrid.com\/\">WordPress website<\/a>. You should now have a grasp of how to <strong>add additional CSS to a Block using Gutenberg<\/strong>. For more information on using CSS in WordPress, please see <a href=\"https:\/\/codex.wordpress.org\/CSS\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">the official WordPress Codex entries for CSS and recommended resources<\/a>.<\/p>\n<p>Congratulations! You now know how to add additional CSS classes to a WordPress Block.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Each block that you use in the Gutenberg editor can have additional CSS classes defined via the block properties. The following tutorial will show you how to find the option to add additional CSS classes using the Gutenberg editor. Note that the Gutenberg editor has been integrated directly into the WordPress Administrator dashboard as of [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Add Additional CSS to a Block using Gutenberg","bgseo_description":"Learn how to add additional CSS to a block using Gutenberg.  You can add additional formatting to blocks within the WordPress editor with this option. ","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[151],"tags":[691],"class_list":["post-12344","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials","tag-gutenberg"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/12344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=12344"}],"version-history":[{"count":12,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/12344\/revisions"}],"predecessor-version":[{"id":21837,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/12344\/revisions\/21837"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=12344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=12344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=12344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}