{"id":25905,"date":"2020-05-22T14:48:14","date_gmt":"2020-05-22T06:48:14","guid":{"rendered":"https:\/\/facekungfu.com\/?p=25905"},"modified":"2025-01-17T23:32:12","modified_gmt":"2025-01-17T15:32:12","slug":"five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor","status":"publish","type":"post","link":"https:\/\/ke2b.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 a topic shared on this WordPress Meetup!<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.meetup.com\/Taoyuan-WordPress-Meetup\/events\/270651847\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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\n<h2 class=\"wp-block-heading\">Method 1<br>Custom CSS in WordPress &#8211; &#8220;Additional CSS&#8221; Tab <\/h2>\n\n\n\n<p>Starting with WordPress 4.7, you can now add custom CSS to your own theme from the\u00a0<a target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Appearance_Customize_Screen\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Appearance Customize Screen<\/a>, without the need for additional plugins or directly editing themes and child themes. Just choose the\u00a0<strong>Additional CSS<\/strong>\u00a0tab when customizing your current theme to get started!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"759\" data-attachment-id=\"25906\" data-permalink=\"https:\/\/ke2b.com\/en\/example-of-custom-css-in-wordpress-additional-css-tab\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?fit=1920%2C940&amp;quality=89&amp;ssl=1\" 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 &amp;#8211; Custom CSS in WordPress &amp;#8211; Additional CSS Tab\" data-image-description=\"&lt;p&gt;Example &amp;#8211; Custom CSS in WordPress &amp;#8211; Additional CSS Tab &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &amp;#8211; Custom CSS in WordPress &amp;#8211; Additional CSS Tab&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?fit=1920%2C940&amp;quality=89&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=1550%2C759&#038;quality=89&#038;ssl=1\" alt=\"Example - Custom CSS in WordPress - Additional CSS Tab\" class=\"wp-image-25906\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?w=1920&amp;quality=89&amp;ssl=1 1920w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=1200%2C588&amp;quality=89&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=150%2C73&amp;quality=89&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><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\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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 has basic CSS knowledge or know how to do copy &amp; paste job if they have the 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 fixed 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\n<h3 class=\"wp-block-heading\">(Practice Time)<\/h3>\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\n<h2 class=\"wp-block-heading\">Method 2<br>Custom CSS in Code Snippets<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"zegYYgZgSC\"><a  href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Code Snippets<\/a><\/blockquote><iframe 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=9gwlZLVKHI#?secret=zegYYgZgSC\" data-secret=\"zegYYgZgSC\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a target=\"_blank\" href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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<\/strong> but also CSS, JS,<strong> and HTML<\/strong> code snippets on your site.<\/p>\n\n\n\n<p>Here are CSS code snippet examples.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"629\" data-attachment-id=\"25908\" data-permalink=\"https:\/\/ke2b.com\/en\/example-of-custom-css-in-wordpress-code-snippets\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?fit=1696%2C688&amp;quality=80&amp;ssl=1\" 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 &amp;#8211; Custom CSS in WordPress &amp;#8211; Code Snippets\" data-image-description=\"&lt;p&gt;Example &amp;#8211; Custom CSS in WordPress &amp;#8211; Code Snippets &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &amp;#8211; Custom CSS in WordPress &amp;#8211; Code Snippets&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?fit=1696%2C688&amp;quality=80&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=1550%2C629&#038;quality=80&#038;ssl=1\" alt=\"Example - Custom CSS in WordPress - Code Snippets\" class=\"wp-image-25908\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?w=1696&amp;quality=80&amp;ssl=1 1696w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=1200%2C487&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=150%2C61&amp;quality=80&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><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 data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"748\" data-attachment-id=\"25910\" data-permalink=\"https:\/\/ke2b.com\/en\/example-of-one-of-our-custom-css-for-amp-in-wordpress-code-snippets\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?fit=1851%2C893&amp;quality=80&amp;ssl=1\" 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 &amp;#8211; Our Custom CSS for AMP &amp;#8211; Code Snippets\" data-image-description=\"&lt;p&gt;Example &amp;#8211; Our Custom CSS for AMP &amp;#8211; Code Snippets &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &amp;#8211; Our Custom CSS for AMP &amp;#8211; Code Snippets&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?fit=1851%2C893&amp;quality=80&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=1550%2C748&#038;quality=80&#038;ssl=1\" alt=\"Example - Our Custom CSS for AMP - Code Snippets\" class=\"wp-image-25910\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?w=1851&amp;quality=80&amp;ssl=1 1851w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=1200%2C579&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=150%2C72&amp;quality=80&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><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 a similar plugin for header or footer only.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"yj3FqCupPj\"><a  href=\"https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Header Footer Code Manager<\/a><\/blockquote><iframe 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=S7U42u97o9#?secret=yj3FqCupPj\" data-secret=\"yj3FqCupPj\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a target=\"_blank\" href=\"https:\/\/wordpress.org\/plugins\/header-footer-code-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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\n<h3 class=\"wp-block-heading\">(Practice Time)<\/h3>\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\n<h2 class=\"wp-block-heading\">Method 3<br>Blocks CSS: CSS Editor for Gutenberg Blocks<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ey9qR4FySo\"><a  href=\"https:\/\/wordpress.org\/plugins\/blocks-css\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Blocks CSS: CSS Editor for Gutenberg Blocks<\/a><\/blockquote><iframe 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=CrIDTwn8bv#?secret=ey9qR4FySo\" data-secret=\"ey9qR4FySo\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a  href=\"https:\/\/wordpress.org\/plugins\/blocks-css\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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 data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"369\" data-attachment-id=\"25919\" data-permalink=\"https:\/\/ke2b.com\/en\/blocks-css-css-editor-for-gutenberg-blocks\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?fit=640%2C369&amp;ssl=1\" 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 &amp;#8211; CSS Editor for Gutenberg Blocks\" data-image-description=\"&lt;p&gt;Blocks CSS &amp;#8211; CSS Editor for Gutenberg Blocks &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Blocks CSS &amp;#8211; CSS Editor for Gutenberg Blocks&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?fit=640%2C369&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?resize=640%2C369&#038;ssl=1\" alt=\"Blocks CSS - CSS Editor for Gutenberg Blocks\" class=\"wp-image-25919\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?resize=150%2C86&amp;ssl=1 150w\" sizes=\"(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 know what the exact 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\n<h2 class=\"wp-block-heading\">Method 4<br>Custom CSS in Page Editor &#8211; Elementor Pro<\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/be.elementor.com\/visit\/?bta=10204&#038;brand=elementor\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">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 free to use this function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"470\" data-attachment-id=\"25930\" data-permalink=\"https:\/\/ke2b.com\/en\/custom-css-in-page-editor-elementor-pro\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?fit=1024%2C470&amp;ssl=1\" 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 &amp;#8211; Elementor Pro\" data-image-description=\"&lt;p&gt;Custom CSS in Page Editor &amp;#8211; Elementor Pro &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Custom CSS in Page Editor &amp;#8211; Elementor Pro&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?fit=1024%2C470&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?resize=1024%2C470&#038;ssl=1\" alt=\"Custom CSS in Page Editor - Elementor Pro\" class=\"wp-image-25930\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?resize=150%2C69&amp;ssl=1 150w\" sizes=\"(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 know what the exact 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 is independent of 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\n<h2 class=\"wp-block-heading\">Method 5<br>Custom CSS in Theme Options of Their Back-end<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1319\" height=\"468\" data-attachment-id=\"25922\" data-permalink=\"https:\/\/ke2b.com\/en\/example-custom-css-in-theme-options-of-their-back-end\/\" data-orig-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?fit=1319%2C468&amp;quality=80&amp;ssl=1\" 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 &amp;#8211; Custom CSS in Theme Options of Their Back-end\" data-image-description=\"&lt;p&gt;Example &amp;#8211; Custom CSS in Theme Options of Their Back-end &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Example &amp;#8211; Custom CSS in Theme Options of Their Back-end&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?fit=1319%2C468&amp;quality=80&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=1319%2C468&#038;quality=80&#038;ssl=1\" alt=\"Example - Custom CSS in Theme Options of Their Back-end\" class=\"wp-image-25922\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?w=1319&amp;quality=80&amp;ssl=1 1319w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=1200%2C426&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=150%2C53&amp;quality=80&amp;ssl=1 150w\" sizes=\"(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 helps users to import demos so that their websites could look like the demo site.<\/p>\n\n\n\n<p>That&#8217;s what 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&#8217;s 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\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Choose one of the top 2 best methods depending on what you and your website development 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 plugins like that).<\/li>\n<\/ul>\n\n\n\n<p>Or choose one of these 2 methods compatible with the editor.  Take advantage of skipping the step of checking elements you need if you have no problem with 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":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"77","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19,222,77,20],"tags":[34,25,92,27],"class_list":["post-25905","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-meetup","category-plugins-themes","category-web-design","category-wordpress","tag-block-editor","tag-css","tag-elementor","tag-gutenberg"],"blocksy_meta":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?fit=1920%2C940&quality=89&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/posts\/25905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/comments?post=25905"}],"version-history":[{"count":1,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/posts\/25905\/revisions"}],"predecessor-version":[{"id":34255,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/posts\/25905\/revisions\/34255"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/media\/25906"}],"wp:attachment":[{"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/media?parent=25905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/categories?post=25905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ke2b.com\/en\/wp-json\/wp\/v2\/tags?post=25905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}