{"id":10913,"date":"2020-04-20T09:45:12","date_gmt":"2020-04-20T08:45:12","guid":{"rendered":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/?page_id=10913"},"modified":"2020-05-08T15:59:59","modified_gmt":"2020-05-08T14:59:59","slug":"editor-blocks","status":"publish","type":"page","link":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/editor-blocks\/","title":{"rendered":"Editor Blocks"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Blocks are the new way of adding content to pages in WordPress. As an editing experience, it\u2019s not to everyone\u2019s taste, and many clients prefer to stick with the old Classic editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See the official <a href=\"https:\/\/wordpress.org\/support\/article\/wordpress-editor\/\">WordPress blocks guide<\/a> for details of the editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The theme will work with either editor but has some features which can only be used with the Block editor. It is possible to do the bulk of your editing in Classic mode and only switch to the Block editor when you need it for its advanced layout options. (Don\u2019t switch between them mid-edit though as sometimes edits can be lost, especially if you jump back and forth between modes!)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Theme Classes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Blocks that come with WordPress, and other third-party blocks don\u2019t always have options you might want, but some additional control is possible using the Advanced panel for individual blocks. This allows you to add classes to the block. Classes are used to define styling which can supplement or over-ride the default styling for the block. As the user needs to know class names and what they do, it\u2019s not a very elegant solution, but the Block editor is an evolving system and has its limitations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Callanish theme has several classes designed for use with blocks and others can be added as part of the customisation of the theme.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>img-border<\/strong> adds a border to images, for use in the Gallery Block<\/li><li><strong>text-shadow-black<\/strong> adds a black text shadow to text, useful where white text is overlaying an image<\/li><li><strong>clip10<\/strong>, <strong>clip-10<\/strong>, <strong>skew10<\/strong>, <strong>skew-10<\/strong> are classes specifically for the Media &amp; Text block to provide a sloping edge to the image<\/li><li><strong>skew2<\/strong> and <strong>skew-2<\/strong> are classes for modifying the Group block to apply a slope to the top and bottom edges of the block<\/li><li><strong>fullheight<\/strong> and <strong>halfheight<\/strong> are for use with the Cover Block which by default can only have its minimum height set in pixels; these classes will set the minimum height to fill all or half of the screen height<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, there are blocks like Paragraph which do not have the toolbar option for Wide Width or Full Width, but this can be applied by including the relevant class, <strong>alignwide<\/strong> or <strong>alignfull<\/strong>. These classes will not be reflected in the editor view but will be applied when the page is displayed on your website, at least for some blocks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/css-classes-for-modifying-editor-blocks\/\">examples of these classes in use<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Third Party Blocks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The theme comes with Atomic Blocks pre-installed and additional block sets can be installed using plugins. However, many block sets have similar blocks, and not all of these will have styling which matches your site, and having too many blocks can become confusing and make it difficult to maintain consistency across the site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Theme Blocks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The theme comes with several custom Blocks developed to accompany the theme. The <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/theme-blocks\/\">Theme Blocks page<\/a> has full details of these blocks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blocks are the new way of adding content to pages in WordPress. As an editing experience, it\u2019s not to everyone\u2019s taste, and many clients prefer to stick with the old Classic editor. See the official WordPress blocks guide for details&nbsp;\u2026 <\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":["post-10913","page","type-page","status-publish","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/10913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/comments?post=10913"}],"version-history":[{"count":7,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/10913\/revisions"}],"predecessor-version":[{"id":11178,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/10913\/revisions\/11178"}],"wp:attachment":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/media?parent=10913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}