A reusable shortcode that displays a class to action block with a button to a contact form.
Enter content for the CTA text
Enter content for the button
Select the contact page, and allow a custom one to be used
Has a standard panel with a primary button inside
To Do
[ ] Create site option for panel title (e.g. "Contact us for more information")
[ ] Create site option for Panel text (e.g. "To learn more about our services or to request a free quote, please contact us")
[ ] Create site options for button text ("Contact Us")
[ ] Select contact page from site options, or default to 'contact'
[ ] Render HTML for CTA block as per below
[ ] Add dropdown item to editor UI
Block markup
<footer class="panel cta-panel">
<h2>[Get in touch]</h2>
<p>[To learn more about our services or to request a free quote, please contact us]</p>
<a href="[contact page]" class="button primary">[To learn more about our services or to request a free quote, please contact us]</a>
</footer>
Details
A reusable shortcode that displays a class to action block with a button to a contact form.
To Do
Block markup