{"id":25905,"date":"2020-05-22T14:48:14","date_gmt":"2020-05-22T06:48:14","guid":{"rendered":"https:\/\/facekungfu.com\/?p=25905"},"modified":"2025-02-16T22:22:45","modified_gmt":"2025-02-16T14:22:45","slug":"five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor","status":"publish","type":"post","link":"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/","title":{"rendered":"How to Add Custom CSS to WordPress: 5 Methods Including Block Editor &#038; Elementor"},"content":{"rendered":"\n<p>This post is also as a topic shared on this WordPress Meetup!<\/p>\n\n\n\n<p><a href=\"https:\/\/www.meetup.com\/Taoyuan-WordPress-Meetup\/events\/270651847\">https:\/\/www.meetup.com\/Taoyuan-WordPress-Meetup\/events\/270651847<\/a><\/p>\n\n\n\n<p>&#8220;How to Do Custom CSS in WordPress&#8221; is a question asked frequently. Here are five methods including the best choices for what purposes you&#8217;ll need.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"method-1custom-css-in-wordpress-additional-css-tab\">Method 1<br>Custom CSS in WordPress &#8211; &#8220;Additional CSS&#8221; Tab <\/h2>\n\n\n<p>Starting with WordPress 4.7, you can now add custom CSS to your own theme from the&nbsp;<a href=\"https:\/\/codex.wordpress.org\/Appearance_Customize_Screen\">Appearance Customize Screen<\/a>, without the need for additional plugins or directly editing themes and child themes. Just choose the&nbsp;<strong>Additional CSS<\/strong>&nbsp;tab when customizing your current theme to get started!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"940\" data-attachment-id=\"25906\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/example-of-custom-css-in-wordpress-additional-css-tab\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg\" data-orig-size=\"1920,940\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Example &#8211; Custom CSS in WordPress &#8211; Additional CSS Tab\" data-image-description=\"&lt;p&gt;Example &#8211; Custom CSS in WordPress &#8211; Additional CSS Tab&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &#8211; Custom CSS in WordPress &#8211; Additional CSS Tab&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg\" alt=\"Example - Custom CSS in WordPress - Additional CSS Tab\" class=\"wp-image-25906\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg 1920w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab-1200x588.jpg 1200w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab-150x73.jpg 150w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><figcaption class=\"wp-element-caption\">Example &#8211; Custom CSS in WordPress &#8211; Additional CSS Tab<\/figcaption><\/figure>\n\n\n\n<p>Any CSS changes you make will appear in the preview, just like other changes made in the customizer, this means you have time to tweak and perfect the look of your site, without actually changing anything until you are happy with it all!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>VIA Codex, WordPress.ORG<\/p>\n<cite><a href=\"https:\/\/codex.wordpress.org\/CSS\">https:\/\/codex.wordpress.org\/CSS<\/a><\/cite><\/blockquote>\n\n\n\n<p>Keep in mind that the CSS changes are tied in with your theme. This means that if you change to a new theme, your custom CSS styles will no longer be active (of course, if you change back to your previous theme, they will once again be there).<\/p>\n\n\n\n<p>Pros:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Native, manageable, and easy.<\/li>\n\n\n\n<li>Could view results immediately without saving.<\/li>\n\n\n\n<li>Suitable for anyone who have basic CSS knowledge or know how to do copy &amp; paste job if got correct source codes.<\/li>\n<\/ul>\n\n\n\n<p>Cons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The field width is fiexd and isn&#8217;t adjustable. <\/li>\n<\/ul>\n\n\n\n<p>Pros and cons: Custom CSS follows the activated theme individually.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"practice-time\">(Practice Time)<\/h3>\n\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"method-2custom-css-in-code-snippets\">Method 2<br>Custom CSS in Code Snippets<\/h2>\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JOVItHkSyE\"><a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Code Snippets&#8221; &#8212; Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/code-snippets\/embed\/#?secret=VL57HmpW6g#?secret=JOVItHkSyE\" data-secret=\"JOVItHkSyE\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption><a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wordpress.org\/plugins\/code-snippets\/<\/a><\/figcaption><\/figure>\n\n\n\n<p>Code Snippets is an easy, clean and simple way to run PHP code snippets on your site. It removes the need to add custom snippets to your theme\u2019s <code>functions.php<\/code> file.<\/p>\n\n\n\n<p>You can run<strong> not only PHP, but also CSS, JS and HTML<\/strong> code snippets on your site.<\/p>\n\n\n\n<p>Here are CSS code snippets examples.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1696\" height=\"688\" data-attachment-id=\"25908\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/example-of-custom-css-in-wordpress-code-snippets\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png\" data-orig-size=\"1696,688\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Example &#8211; Custom CSS in WordPress &#8211; Code Snippets\" data-image-description=\"&lt;p&gt;Example &#8211; Custom CSS in WordPress &#8211; Code Snippets&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &#8211; Custom CSS in WordPress &#8211; Code Snippets&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png\" alt=\"Example - Custom CSS in WordPress - Code Snippets\" class=\"wp-image-25908\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png 1696w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets-1200x487.png 1200w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets-150x61.png 150w\" sizes=\"auto, (max-width: 1696px) 100vw, 1696px\" \/><figcaption class=\"wp-element-caption\">Example &#8211; Custom CSS in WordPress &#8211; Code Snippets<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1851\" height=\"893\" data-attachment-id=\"25910\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/example-of-one-of-our-custom-css-for-amp-in-wordpress-code-snippets\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png\" data-orig-size=\"1851,893\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Example &#8211; Our Custom CSS for AMP &#8211; Code Snippets\" data-image-description=\"&lt;p&gt;Example &#8211; Our Custom CSS for AMP &#8211; Code Snippets&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &#8211; Our Custom CSS for AMP &#8211; Code Snippets&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png\" alt=\"Example - Our Custom CSS for AMP - Code Snippets\" class=\"wp-image-25910\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png 1851w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets-1200x579.png 1200w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets-150x72.png 150w\" sizes=\"auto, (max-width: 1851px) 100vw, 1851px\" \/><figcaption class=\"wp-element-caption\">Example &#8211; Our Custom CSS for AMP &#8211; Code Snippets<\/figcaption><\/figure>\n\n\n\n<p>You can also choose similar plugin like that for header or footer only.<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"LsSl0JGuUD\"><a href=\"https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/\">Header Footer Code Manager<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Header Footer Code Manager&#8221; &#8212; Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/embed\/#?secret=ee5HIKIHl4#?secret=LsSl0JGuUD\" data-secret=\"LsSl0JGuUD\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption><a href=\"https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/<\/a><\/figcaption><\/figure>\n\n\n\n<p>Pros:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manageable, functional, highly flexible and not so difficult for custom CSS.<\/li>\n\n\n\n<li>Switches are convenient for testing and developing <\/li>\n<\/ul>\n\n\n\n<p>Cons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Couldn&#8217;t view results immediately without saving.<\/li>\n<\/ul>\n\n\n\n<p>Pros and cons: Custom CSS are independent from any themes.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"practice-time-2\">(Practice Time)<\/h3>\n\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"method-3blocks-css-css-editor-for-gutenberg-blocks\">Method 3<br>Blocks CSS: CSS Editor for Gutenberg Blocks<\/h2>\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"zjaEQZFg7o\"><a href=\"https:\/\/wordpress.org\/plugins\/blocks-css\/\">Blocks CSS: CSS Editor for Gutenberg Blocks<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Blocks CSS: CSS Editor for Gutenberg Blocks&#8221; &#8212; Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/blocks-css\/embed\/#?secret=VQEYqAKBDh#?secret=zjaEQZFg7o\" data-secret=\"zjaEQZFg7o\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption><a href=\"https:\/\/wordpress.org\/plugins\/blocks-css\/\">https:\/\/wordpress.org\/plugins\/blocks-css\/<\/a><\/figcaption><\/figure>\n\n\n\n<p>Blocks CSS allows you add custom CSS to your Gutenberg Blocks straight from the Editor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"369\" data-attachment-id=\"25919\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/blocks-css-css-editor-for-gutenberg-blocks\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif\" data-orig-size=\"640,369\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Blocks CSS &#8211; CSS Editor for Gutenberg Blocks\" data-image-description=\"&lt;p&gt;Blocks CSS &#8211; CSS Editor for Gutenberg Blocks&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Blocks CSS &#8211; CSS Editor for Gutenberg Blocks&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif\" alt=\"Blocks CSS - CSS Editor for Gutenberg Blocks\" class=\"wp-image-25919\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif 640w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks-150x86.gif 150w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption class=\"wp-element-caption\">Blocks CSS &#8211; CSS Editor for Gutenberg Blocks<\/figcaption><\/figure>\n\n\n\n<p>It adds a syntax-highlighted CSS Editor where you can add additional CSS to your Gutenberg Blocks to style them the way you want.<\/p>\n\n\n\n<p>Pros:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Easy, even lazy.<\/li>\n\n\n\n<li>Need not to know what the exactly element name you want to control is.<\/li>\n\n\n\n<li><code>selector { }<\/code> is always typed automatically<\/li>\n<\/ul>\n\n\n\n<p>Cons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unmanageable.<\/li>\n\n\n\n<li>You might forget what &amp; where the custom CSS codes are.<\/li>\n<\/ul>\n\n\n\n<p>Pros and cons: Custom CSS are independent from any themes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"method-4custom-css-in-page-editor-elementor-pro\">Method 4<br>Custom CSS in Page Editor &#8211; Elementor Pro<\/h2>\n\n\n<p><a href=\"https:\/\/be.elementor.com\/visit\/?bta=10204&amp;brand=elementor\" target=\"_blank\" rel=\"noreferrer noopener\">Elementor Pro<\/a><\/p>\n\n\n\n<p>Add custom CSS to any section, column, widget or page in Elementor &#8220;Pro&#8221; version.  It means not for free to use this function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" data-attachment-id=\"25930\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/custom-css-in-page-editor-elementor-pro\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif\" data-orig-size=\"1024,470\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Custom CSS in Page Editor &#8211; Elementor Pro\" data-image-description=\"&lt;p&gt;Custom CSS in Page Editor &#8211; Elementor Pro&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Custom CSS in Page Editor &#8211; Elementor Pro&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif\" alt=\"Custom CSS in Page Editor - Elementor Pro\" class=\"wp-image-25930\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif 1024w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro-150x69.gif 150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Custom CSS in Page Editor &#8211; Elementor Pro<\/figcaption><\/figure>\n\n\n\n<p>Pros:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Easy, even lazy.<\/li>\n\n\n\n<li>Need not to know what the exactly element name you want to control is.<\/li>\n<\/ul>\n\n\n\n<p>Cons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unmanageable.<\/li>\n\n\n\n<li>You might forget what &amp; where the custom CSS codes are.<\/li>\n\n\n\n<li><code>selector { }<\/code> is NOT typed automatically, need to type this repeated code manually in every custom CSS field.<\/li>\n<\/ul>\n\n\n\n<p>Pros and cons: Custom CSS are independent from any themes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"method-5custom-css-in-theme-options-of-their-backend\">Method 5<br>Custom CSS in Theme Options of Their Back-end<\/h2>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1319\" height=\"468\" data-attachment-id=\"25922\" data-permalink=\"https:\/\/facekungfu.com\/en\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/example-custom-css-in-theme-options-of-their-back-end\/\" data-orig-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png\" data-orig-size=\"1319,468\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Example &#8211; Custom CSS in Theme Options of Their Back-end\" data-image-description=\"&lt;p&gt;Example &#8211; Custom CSS in Theme Options of Their Back-end&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &#8211; Custom CSS in Theme Options of Their Back-end&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png\" data-large-file=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png\" src=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png\" alt=\"Example - Custom CSS in Theme Options of Their Back-end\" class=\"wp-image-25922\" srcset=\"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png 1319w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end-1200x426.png 1200w, https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end-150x53.png 150w\" sizes=\"auto, (max-width: 1319px) 100vw, 1319px\" \/><figcaption class=\"wp-element-caption\">Example &#8211; Custom CSS in Theme Options of Their Back-end<\/figcaption><\/figure>\n\n\n\n<p>I think its main purpose is not for users to do custom CSS jobs.<\/p>\n\n\n\n<p>It helping users to import demos so that make their websites could be look like the demo site.<\/p>\n\n\n\n<p>That&#8217;s what the meaningful it is, I think so. <\/p>\n\n\n\n<p>Pros:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manageable and easy.<\/li>\n<\/ul>\n\n\n\n<p>Cons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Couldn&#8217;t view results immediately without saving.<\/li>\n\n\n\n<li>Usually too simple so that bad to edit and advanced coding.<\/li>\n<\/ul>\n\n\n\n<p>Pros and cons: Custom CSS follows the activated theme individually.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n<p>Choose one of the top 2 best method depending on what you and your website develop environment need.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Method 1<br>Custom CSS in WordPress &#8211; &#8220;Additional CSS&#8221;<\/li>\n\n\n\n<li>Method 2<br>Code Snippets (or similar plugin like that).<\/li>\n<\/ul>\n\n\n\n<p>Or choose one of these 2 methods compatible for the editor.  Take the advantage for skipping the step of checking elements you need if you were no problem on CSS management.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Method 3<br>Blocks CSS: CSS Editor for Gutenberg Blocks<\/li>\n\n\n\n<li>Method 4<br>Custom CSS in Page Editor &#8211; Elementor Pro<\/li>\n<\/ul>\n\n\n\n<p>Then, you will be happy with your website customized by yourself!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How to Do Custom CSS in WordPress&#8221; is a question asked frequently.  Here are five methods including the best choices for what purposes you&#8217;ll need.<br \/>\nThen, you will be happy with your website customized by yourself!<\/p>\n","protected":false},"author":1,"featured_media":25906,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/template-cover.php","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[587,786,588],"tags":[926,924],"class_list":["post-25905","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-meetup","category-web-design","category-wordpress","tag-css","tag-gutenberg"],"jetpack_publicize_connections":[],"featured_image_src":"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab-600x400.jpg","featured_image_src_square":"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg","author_info":{"display_name":"Green","author_link":"https:\/\/facekungfu.com\/en\/author\/yanggh\/"},"jetpack_featured_media_url":"https:\/\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/posts\/25905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/comments?post=25905"}],"version-history":[{"count":1,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/posts\/25905\/revisions"}],"predecessor-version":[{"id":28848,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/posts\/25905\/revisions\/28848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/media\/25906"}],"wp:attachment":[{"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/media?parent=25905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/categories?post=25905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/facekungfu.com\/en\/wp-json\/wp\/v2\/tags?post=25905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}