Adding buttons to page content
To add a branded and hyperlinked button to any of your pages, follow the steps below
In your page settings, navigate to the content/intro section (e.g. https://climateaction.nationbuilder.com/admin/sites/9/pages/2115/basic/edit)
Click the Source Code button in the content editor tool bar (see screenshot below)
Scroll to the part of your content that you'd like to add your button to, and paste in the following line of code:
<p><a class="btn btn-secondary" href="[LINK]">[BUTTON_TEXT]</a></p>
Again, see screenshot below
Note that once you're done, the button will appear like any other hyperlink in the content editor, but it will appear as a button on the live page. Also note that the code above gives you a red button, in line with your theme's "secondary" color - coral red. Replacing btn-secondary
with btn-primary
, btn-turquoise
or btn-yellow
will give you different-coloured buttons.
Last updated