{"id":6123,"date":"2025-09-10T09:17:52","date_gmt":"2025-09-10T09:17:52","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/?page_id=6123"},"modified":"2025-09-10T09:30:58","modified_gmt":"2025-09-10T09:30:58","slug":"css","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/how-to\/css\/","title":{"rendered":"CSS"},"content":{"rendered":"\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What is CSS<\/summary>\n<p>CSS (Cascading Style Sheets) is the language that controls how your WordPress website looks and feels. While WordPress themes handle most styling automatically, understanding basic CSS can help you customize your site&#8217;s appearance beyond the default options.<\/p>\n\n\n\n<p>CSS works by targeting HTML elements and applying visual properties to them. For example, you might change text color, adjust spacing, or modify fonts. The &#8220;cascading&#8221; part means styles flow from general to specific &#8211; more specific rules override general ones.<\/p>\n\n\n\n<p>In WordPress, you can add custom CSS through the Customizer (Appearance &gt; Customize &gt; Additional CSS) or in a block theme By editign the styles section of the . The Customizer is safer for beginners since changes won&#8217;t be lost when updating themes.<\/p>\n\n\n\n<p>Basic CSS structure follows this pattern:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; gutter: false; title: ; notranslate\" title=\"\">\nselector {\n    property: value;\n}\n<\/pre><\/div>\n\n\n<p>For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; gutter: false; title: ; notranslate\" title=\"\">\nh1 {\n    color: blue;\n    font-size: 24px;\n}\n<\/pre><\/div><\/details>\n\n\n\n<p>For the most part you will not often need to use custom css in glow blogs. Especially with the block editor you can edit a lot of the styles in the settings sidebar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use CSS in glow blogs<\/h2>\n\n\n\n<p>You first have to turn on css in the Dashboard -&gt; Settings -&gt; General page of the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"449\" data-attachment-id=\"6140\" data-permalink=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/how-to\/css\/css-checkbox\/\" data-orig-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox.png\" data-orig-size=\"967,449\" 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=\"css-checkbox\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox-500x232.png\" data-large-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox.png\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox.png\" alt=\"Screenshot of the CSS Edit toggle in the dasboard of a glow blog.\" class=\"wp-image-6140\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox.png 967w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox-500x232.png 500w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/glowbloghelp\/uploads\/sites\/2545\/2025\/09\/10081531\/css-checkbox-768x357.png 768w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/figure>\n\n\n\n<p>remember to Save.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Editing in Classic Themes<\/h2>\n\n\n\n<p>If you are using a <strong>classic theme<\/strong> you access the Additional  CSS via the customiser. When loged on to your site you will see a link to <em>customizer<\/em> in the Admin toolbar. Click that and you should see Additional CSS in the left hand sidebar  that opens. Clicking that will allow you to edit the CSS. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit in the Block Theme<\/h2>\n\n\n\n<p>If you are using a <strong>block theme<\/strong> you can access the additional css in the Site Editor. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Choose Appearance \u00bb Editor from your WordPress dashboard.<\/li>\n\n\n\n<li>In the left-hand menu, click on \u2018Styles\u2019.<\/li>\n\n\n\n<li>You will see the \u2018Styles\u2019 panel for your site as well as your page preview.<\/li>\n\n\n\n<li>Click on the preview to open the block editor.<\/li>\n\n\n\n<li>Click on the \u2018Styles\u2019 icon. It looks like a circle that\u2019s half-black and half-white.<\/li>\n\n\n\n<li>Select \u2018Additional CSS.\u2019<\/li>\n<\/ol>\n\n\n\n<p>You will also the styles menu when editing any template in the site Editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Examples<\/h2>\n\n\n\n<p>We use this on the help site to centre our content on larger monitors.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.site {\nmargin: 0 auto;\n}\n<\/pre><\/div>\n\n\n<p>More details:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-glow-blog-help wp-block-embed-glow-blog-help\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"2I3Ts5fbPq\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/portfolio\/centre-your-twentyfourteen-site\/\">Centre Your TwentyFourteen site<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Centre Your TwentyFourteen site&#8221; &#8212; Glow Blog Help\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/portfolio\/centre-your-twentyfourteen-site\/embed\/#?secret=79GcNUiAb5#?secret=2I3Ts5fbPq\" data-secret=\"2I3Ts5fbPq\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Snippet to get rid of auto hyphens in the TwentyFourteen theme:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; gutter: false; title: ; notranslate\" title=\"\">\n.entry-content,\n.entry-summary,\n.page-content,\n.nav-links,\n.comment-content,\n.widget\n {\n   -webkit-hyphens: none;\n   -moz-hyphens:    none;\n   -ms-hyphens:     none;\n   hyphens:         none;\n}\n<\/pre><\/div>\n\n\n<p>This snippet will change the menu and post titles from ALL caps to title case on TwentyFourteen.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n .site-navigation, .entry-title, .entry-header a {\ntext-transform: capitalize;\n}\n\n.site-navigation a {\ntext-transform: capitalize;\n}\n<\/pre><\/div>\n\n\n<p>You can find out more about CSS:<br><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\">CSS | MDN<\/a><\/p>\n\n\n\n<p>It might be a good idea to remember that the theme developers know a lot about design and CSS before changing things too much.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the most part you will not often need to use custom css in glow blogs. Especially with the block editor you can edit a lot of the styles in the settings sidebar. How to use CSS in glow blogs You first have to turn on css in the Dashboard -&gt; Settings -&gt; General page &hellip; <a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/how-to\/css\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CSS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"parent":129,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6123","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/pages\/6123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/comments?post=6123"}],"version-history":[{"count":7,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/pages\/6123\/revisions"}],"predecessor-version":[{"id":6151,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/pages\/6123\/revisions\/6151"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/pages\/129"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/glowbloghelp\/wp-json\/wp\/v2\/media?parent=6123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}