{"id":116,"date":"2019-07-25T15:27:15","date_gmt":"2019-07-25T20:27:15","guid":{"rendered":"https:\/\/wp.stolaf.edu\/site2017\/?page_id=116"},"modified":"2025-02-12T11:10:51","modified_gmt":"2025-02-12T17:10:51","slug":"adding-buttons","status":"publish","type":"page","link":"https:\/\/wp.stolaf.edu\/using-wordpress\/adding-buttons\/","title":{"rendered":"Adding Buttons"},"content":{"rendered":"<div data-modular-content-collection><h2>Insert Button Class<\/h2>\n<p>Using the <span style=\"font-family: monospace; font-weight: bold;\">btn<\/span> class id you are able to apply the button style to your link.<\/p>\n<ol>\n<li>Edit the page and switch to the text editor.<\/li>\n<li>Find the link.<\/li>\n<li>Insert the class id as follows: <code>class=\"btn\"<\/code><\/li>\n<\/ol>\n<h5>Example code:<\/h5>\n<p><code>&lt;a class=\"btn\" href=\"https:\/\/wp.stolaf.edu\/\"&gt;Link Label Text&lt;\/a&gt;<\/code><\/p>\n<h6>Buttons: Default<\/h6>\n<p><code>class=\"btn\"<\/code><\/p>\n<div class=\"site-grid\" style=\"max-width: 1170px;\">\n<div class=\"site-grid__layout\">\n<div class=\"site-grid__layout--2-col-sm site-grid__layout site-grid__layout--4-col \">\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 1<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 2<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 3<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 4<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h6>Buttons: Grey<\/h6>\n<p><code>class=\"btn--grey\"<\/code><\/p>\n<div class=\"site-grid\" style=\"max-width: 1170px;\">\n<div class=\"site-grid__layout\">\n<div class=\"site-grid__layout--2-col-sm site-grid__layout site-grid__layout--4-col \">\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--grey\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 1<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--grey\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 2<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--grey\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 3<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--grey\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 4<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h6>Buttons: Purple (3 columns)<\/h6>\n<p><code>class=\"btn--purple\"<\/code><\/p>\n<div class=\"site-grid\" style=\"max-width: 1170px;\">\n<div class=\"site-grid__layout\">\n<div class=\"site-grid__layout--2-col-sm site-grid__layout site-grid__layout--3-col \">\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--purple\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 1<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--purple\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 2<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--purple\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 3<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h6>Buttons: Red (2 columns)<\/h6>\n<p><code>class=\"btn--red\"<\/code><\/p>\n<div class=\"site-grid\" style=\"max-width: 1170px;\">\n<div class=\"site-grid__layout\">\n<div class=\"site-grid__layout--1-col-sm site-grid__layout site-grid__layout--2-col \">\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--red\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 1<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--red\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 2<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--red\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 3<\/a><\/div>\n<\/div>\n<div class=\"site-grid__col\">\n<div><a class=\"btn btn--lg btn--red\" style=\"width: 100%; padding: 32px 0 28px 0;\" href=\"https:\/\/wp.stolaf.edu\/\">Button 4<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!-- begin-migrated-from-panel-builder --><!-- end-migrated-from-panel-builder --><\/p>\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-loom wp-block-embed-loom\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"wp-embed wp-embed--lazy\"><div class=\"wp-embed-wrap\"><iframe loading=\"lazy\" title=\"Edit Page \u201cAdding Buttons\u201d \u2039 Using WordPress at St. Olaf \u2014 WordPress - 28 October 2024\" src=\"https:\/\/www.loom.com\/embed\/120d9fc461d7447297abf7c0cc2159f8\" frameborder=\"0\" width=\"500\" height=\"375\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><\/div><\/div>\n<\/div><\/figure>\n\n\n\n<div style=\"height:1em\" aria-hidden=\"true\" id=\"EditingButtons\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-loom wp-block-embed-loom\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"wp-embed wp-embed--lazy\"><div class=\"wp-embed-wrap\"><iframe loading=\"lazy\" title=\"Editing Existing Buttons Tutorial \ud83d\udc69\u200d\ud83d\udcbb\" src=\"https:\/\/www.loom.com\/embed\/44ef61a2e13b43bd96159da45360d56e\" frameborder=\"0\" width=\"500\" height=\"375\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><\/div><\/div>\n<\/div><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Insert Button Class Using the btn class id you are able to apply the button style to your link. Edit the page and switch to the text editor. Find the [&hellip;]<\/p>\n","protected":false},"author":2110,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-116","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/pages\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/users\/2110"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":25,"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/pages\/116\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/pages\/116\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/wp.stolaf.edu\/using-wordpress\/wp-json\/wp\/v2\/media?parent=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}