How to add buttons to content on Renaissance

When creating your content you may wonder “How do I add a button?”, this is something we commonly get asked.

Adding buttons is totally possible, and can be added through a CMS snippet or directly into the source code of a page.

If building CMS snippets or editing source code, a general understanding of HTML will help you accomplish this task easier.

Adding these in is as simple as copy and paste into the section of page/snippet markup where you want it displayed, then you will just change the button title and button link.

See below for button previews and code for the different button types.

Click to View Primary Button Preview and Codes

button-primary button-primary-round


Square button code without hyperlinks:
<button class="button button--large button--primary">Primary Button</button>
Square button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--primary">Primary Button</button></a>
Round button code without hyperlinks:
<button class="button button--large button--round button--primary">Primary Round Button</button>
Round button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--round button--primary">Primary Round Button</button></a>

Click to View Secondary Button Preview and Codes

button-secondary button-secondary-round


Square button code without hyperlinks:
<button class="button button--large button--secondary">Secondary Button</button>
Square button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--secondary">Secondary Button</button></a>
Round button code without hyperlinks:
<button class="button button--large button--round button--secondary">Secondary Round Button</button>
Round button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--round button--secondary">Secondary Round Button</button></a>

Click to View Green Button Preview and Codes

button-green button-green-round


Square button code without hyperlinks:
<button class="button button--large button--success">Green Button</button>
Square button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--success">Green Button</button></a>
Round button code without hyperlinks:
<button class="button button--large button--round button--success">Green Round Button</button>
Round button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--round button--success">Green Round Button</button></a>

Click to View Blue Button Preview and Codes

button-blue button-blue-round


Square button code without hyperlinks:
<button class="button button--large button--blue">Blue Button</button>
Square button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--blue">Blue Button</button></a>
Round button code without hyperlinks:
<button class="button button--large button--round button--blue">Blue Round Button</button>
Round button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--round button--blue">Blue Round Button</button></a>

Click to View Ghost Button Preview and Codes

button-ghost button-round-ghost


Square button code without hyperlinks:
<button class="button button--large button--ghost">Ghost Button</button>
Square button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--ghost">Ghost Button</button></a>
Round button code without hyperlinks:
<button class="button button--large button--round button--ghost">Ghost Round Button</button>
Round button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--large button--round button--ghost">Ghost Round Button</button></a>

Click to View Small Button Preview and Codes

button-small


Small button code without hyperlinks:
<button class="button button--small button--primary">Small Button</button>
Small button code with hyperlinks (replace # with the page URL):
<a href="#"><button class="button button--small button--primary">Small Button</button></a>

2 Likes

Coolness! And if I wanted to align left or right say under a paragraph, how would I do so?

Great question and something that can be accomplished very easily!

If added through the page itself:

Once the button has been added to the source code, look at the main content and highlight the button.
Next, you simply press the alignment icon and select the alignment option you want to use.

If added through a CMS snippet:

When inserting the code into a CMS snippet you just add and wrap the following around the button code <p style="text-align:right;"></p>

Example: <p style="text-align:right;"><a href="#"><button class="button button--large button--primary">Primary Button</button></a></p>

Awesome, thank you sir!!

Here is the video guide on How To Add Buttons To Content On Renaissance

1 Like