{"id":4298,"date":"2015-06-19T12:52:15","date_gmt":"2015-06-19T12:52:15","guid":{"rendered":"https:\/\/www.lodgix.com\/blog\/?p=4298"},"modified":"2015-06-19T12:52:15","modified_gmt":"2015-06-19T12:52:15","slug":"css-buttons-can-now-be-added-to-email-templates","status":"publish","type":"post","link":"https:\/\/www.lodgix.com\/blog\/css-buttons-can-now-be-added-to-email-templates\/","title":{"rendered":"CSS Buttons Can Now Be Added to Email Templates"},"content":{"rendered":"<div id=\"screensteps-webpost-380489\" class=\"screensteps-document\">\n<div class=\"screensteps-description\">\n<p>Some prefer having a more prominent call to action button in their email templates. Below are instructions\u00a0to replace the &#8220;Book Now&#8221; link in your email templates with a &#8220;Book Now&#8221; button. Email templates can be found under Settings &gt; Templates &gt; Email<\/p>\n<p>Note that this requires basic knowledge of HTML and CSS.<\/p>\n<p>Example code and an illustration of the CSS Book Now button is located at the end of this entry.<\/p>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Current Book Now link<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/fe2b268b-ae87-4c3f-8b05-5c2459bd712a.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/fe2b268b-ae87-4c3f-8b05-5c2459bd712a_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>By default, many email templates will include a link to <em><strong>book now<\/strong><\/em>. This is created using the <span style=\"color: #262626;\">[PROPERTY_BOOKING_URL] merge tag.<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>How Guests see the default Book Now link<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/935c4626-e00c-4f05-80a5-ecacc47dd71e.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/935c4626-e00c-4f05-80a5-ecacc47dd71e_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>The guest\u00a0will receive an email containing a &#8220;Book Now&#8221; text link as seen above.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Updating the merge tag<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/90b7f0cf-7b0f-4904-89d2-55f0d2322bc8.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/90b7f0cf-7b0f-4904-89d2-55f0d2322bc8_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>Replace the default [PROPERTY_BOOKING_URL] merge tag with the [PROPERTY_BOOKING_URL_SIMPLE] merge tag. The merge tag can be found in the editor dropdown box.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Email template &#8211; Source Mode<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/f64adc79-4cbb-488d-999c-3dd5546cdec2.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/f64adc79-4cbb-488d-999c-3dd5546cdec2_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>To add a button using HTML and CSS, switch to the Source editor. See above.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Adding the HTML<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/1ff90323-06c6-4e3f-a555-e19f8fcab409.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/1ff90323-06c6-4e3f-a555-e19f8fcab409_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>This new merge tag will generate the url to book the property. Add a hyperlink and button text.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Adding the CSS<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/f872e6cb-3ebf-4d89-8c8e-89ac6f9033ad.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/f872e6cb-3ebf-4d89-8c8e-89ac6f9033ad_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>You can add inline CSS to style the button as you wish.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>How the new button will look to guests<\/h2>\n<div class=\"image\"><a class=\"screensteps-image-zoom\" href=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/dbec60b5-5701-4e68-a69e-9c939822429e.png\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/screensteps_live\/images\/innfirst\/380489\/1\/rendered\/dbec60b5-5701-4e68-a69e-9c939822429e_display.png\" alt=\"\" \/><\/a><\/div>\n<div class=\"step-instructions\">\n<p>The emails that guests receive will now contain a &#8220;Book Now&#8221; button instead of the default Book Now hyperlink.<\/p>\n<\/div>\n<\/div>\n<div id=\"\" class=\"step\">\n<h2>Complete code to insert the button shown<\/h2>\n<div class=\"step-instructions\">\n<p>To insert a button styled exactly as in this example, you can use the following code:<\/p>\n<p>&lt;a href=&#8221;[PROPERTY_BOOKING_URL_SIMPLE]&#8221; target=&#8221;_blank&#8221;&gt;&lt;span style=&#8221;background: #1793db; color: #ffffff; padding: 10px 20px; border-radius: 4px;&#8221;&gt;Book Now&lt;\/span&gt;&lt;\/a&gt;<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Some prefer having a more prominent call to action button in their email templates. Below are instructions\u00a0to replace the &#8220;Book Now&#8221; link in your email templates with a &#8220;Book Now&#8221; button. Email templates can be found under Settings &gt; Templates &gt; Email Note that this requires basic knowledge of HTML and CSS. Example code and [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4298","post","type-post","status-publish","format-standard","hentry","category-vacation-rental-software-new-features"],"_links":{"self":[{"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/posts\/4298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/comments?post=4298"}],"version-history":[{"count":2,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/posts\/4298\/revisions"}],"predecessor-version":[{"id":4300,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/posts\/4298\/revisions\/4300"}],"wp:attachment":[{"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/media?parent=4298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/categories?post=4298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lodgix.com\/blog\/wp-json\/wp\/v2\/tags?post=4298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}