{"id":1785,"date":"2018-11-03T12:20:00","date_gmt":"2018-11-03T12:20:00","guid":{"rendered":"https:\/\/wpthemetestdata.wordpress.com\/?p=1747"},"modified":"2020-09-26T10:10:44","modified_gmt":"2020-09-26T14:10:44","slug":"block-button","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/manual\/2018\/11\/03\/block-button\/","title":{"rendered":"Block: Button"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p class=\"intro--left\">There are 2 different button styles supported by our WordPress theme- Solid (default) and Outline.<\/p>\n\n\n\n<p><strong>To add a button to your page:<\/strong>&nbsp;While you are on the page you wish to edit, either click on the little [+] icon at the top left of your page or click the [+] symbol after the block where you want to add your button. Type \u201cbutton\u201d in the Block search field to filter all blocks by \u201cbutton\u201d and select the \u201cbutton\u201d block. A button component will load into your page. Add your text to the button and in the right sidebar, select whether you want the default (solid) button or Outline button style.<\/p>\n\n\n\n<p>You add buttons to your site by selecting the \u201cButton\u201d block and then selecting either the \u201cDefault\u201d style or the \u201cOutline\u201d style from the \u201cStyles\u201d dropdown in the right sidebar.<\/p>\n\n\n\n<p>Add your hyperlink to the button. You can paste the URL you wish to link to in the \u201clink\u201d entry box that shows up below the button when you add the button block, or, you can start typing the name of the page you want to link to and a WordPress will show a flyout with some page options.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:48px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"324\" height=\"240\" src=\"http:\/\/blog.uvm.edu\/manual-test\/files\/2019\/09\/Screen-Shot-2019-09-20-at-4.32.24-PM.png\" alt=\"\" class=\"wp-image-4176\" srcset=\"https:\/\/blog.uvm.edu\/manual\/files\/2019\/09\/Screen-Shot-2019-09-20-at-4.32.24-PM.png 324w, https:\/\/blog.uvm.edu\/manual\/files\/2019\/09\/Screen-Shot-2019-09-20-at-4.32.24-PM-300x222.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"182\" src=\"http:\/\/blog.uvm.edu\/manual-test\/files\/2019\/09\/Screen-Shot-2019-09-17-at-12.59.24-PM.png\" alt=\"\" class=\"wp-image-3832\" \/><\/figure>\n\n\n\n<div style=\"height:48px\" aria-hidden=\"true\" role=\"presentation\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Buttons have two recommended styles:&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-button aligncenter is-style-default\"><a class=\"wp-block-button__link\">Default<\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-button aligncenter is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link\">Outline<\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n\n\n\n<div style=\"height:48px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h3 class=\"wp-block-heading\">Avoid long button labels<\/h3>\n\n\n\n<p>You can also have a button with more text than you should ever use. This is not recommended and is bad usability. We realize that this does happen, that the temptation is great to do something like this, or that someone else is having you make a button like this. Please resist creating long button labels &#8212; <a href=\"https:\/\/www.uvm.edu\/drupalwebguide\/forms\/obtain-help\">contact the web team<\/a> if you need support regarding usability.<\/p>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\">A centered button <br \/>with more text <br \/>than you should <br \/>ever put into a button<\/a><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\">A centered button with more text than you should ever put into a button<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:120px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 different button styles supported by our WordPress theme- Solid (default) and Outline. To add a button to your page:&nbsp;While you are on the page you wish to edit, either click on the little [+] icon at the top left of your page or click the [+] symbol after the block where you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.uvm.edu\/manual\/2018\/11\/03\/block-button\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Block: Button&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5625,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[258709,605394],"tags":[],"class_list":["post-1785","post","type-post","status-publish","format-standard","hentry","category-block","category-ux","entry"],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"smasonla","author_link":"https:\/\/blog.uvm.edu\/manual\/author\/smasonla\/"},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"smasonla","author_link":"https:\/\/blog.uvm.edu\/manual\/author\/smasonla\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/blog.uvm.edu\/manual\/category\/block\/\" rel=\"category tag\">Block<\/a> <a href=\"https:\/\/blog.uvm.edu\/manual\/category\/ux\/\" rel=\"category tag\">UX Elements<\/a>","rttpg_excerpt":"There are 2 different button styles supported by our WordPress theme- Solid (default) and Outline. To add a button to your page:&nbsp;While you are on the page you wish to edit, either click on the little [+] icon at the top left of your page or click the [+] symbol after the block where you&hellip;","_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/posts\/1785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/users\/5625"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/comments?post=1785"}],"version-history":[{"count":10,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/posts\/1785\/revisions"}],"predecessor-version":[{"id":5265,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/posts\/1785\/revisions\/5265"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/media?parent=1785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/categories?post=1785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/manual\/wp-json\/wp\/v2\/tags?post=1785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}