{"id":13592,"date":"2022-01-27T10:14:18","date_gmt":"2022-01-27T10:14:18","guid":{"rendered":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/?page_id=13592"},"modified":"2022-01-27T10:21:57","modified_gmt":"2022-01-27T10:21:57","slug":"general-css-classes-included-with-the-theme","status":"publish","type":"page","link":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/general-css-classes-included-with-the-theme\/","title":{"rendered":"General CSS Classes included with the theme"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Classes can be added to blocks or within code to modify the styling of items.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For classes that can be used with entire Blocks, see <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/css-classes-for-modifying-editor-blocks\/\" data-type=\"page\" data-id=\"9769\">CSS classes for modifying Editor Blocks<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Theme allows you to add the class &#8220;button&#8221; to hyperlinks to style them as buttons.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When included within a paragraph of text, using &#8220;button small&#8221; makes the size of the button suitable for inline use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To use these in-code classes you need to edit the text in html view: click on the three vertical dots icon in the block\u2019s toolbar and select &#8220;Edit as HTML&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should then see the raw code for the block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example paragraph block:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sample text with <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/homepage\/\" data-type=\"page\" data-id=\"8869\">link<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How this looks in HTML view:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p&gt;Sample text with &lt;a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/homepage\/\" data-type=\"page\" data-id=\"8869\"&gt;link&lt;\/a&gt;.&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Modify the code to add the classes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p&gt;Sample text with &lt;a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/homepage\/\" data-type=\"page\" data-id=\"8869\" class=\"button small\"&gt;link&lt;\/a&gt;.&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This produces the following paragraph:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sample text with <a class=\"button small\" href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/homepage\/\" data-type=\"page\" data-id=\"8869\">link<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want all links within a paragraph to be small buttons, you can just add the class button-links to the paragraph block, see <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/css-classes-for-modifying-editor-blocks\/\" data-type=\"page\" data-id=\"9769\">CSS classes for modifying Editor Blocks<\/a> for how to add classes to blocks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Classes can be added to blocks or within code to modify the styling of items. For classes that can be used with entire Blocks, see CSS classes for modifying Editor Blocks. The Theme allows you to add the class &#8220;button&#8221;&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-13592","page","type-page","status-publish","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/13592","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=13592"}],"version-history":[{"count":2,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/13592\/revisions"}],"predecessor-version":[{"id":13595,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/13592\/revisions\/13595"}],"wp:attachment":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/media?parent=13592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}