Bootplate Call-to-Action

On the home page of this preview and documentation site, you’ll see two big buttons. Those are managed from that admin using a very basic Bootplate plugin we call, Bootplate CTA Buttons.

Once installed and activated, the plugin creates a Call to Action Buttons area to your page editor.

bootplate-cta-screenshot

Theme Developers will need to add the following functions to their themes (or child themes) to get the buttons to appear. Bootplate users don’t need to worry about that. The plugin is pre-integrated.

Button Class Reference

You can add as many CSS classes to the buttons as you like. In our demo, we’re using Bootstrap v4 classes, but Bootstrap v3.x will work just fine too.

NOTE: This plugin does NOT enqueue any resources–not even Bootstrap itself.

Functions Reference

have_bootplate_btns() – BOOL – Returns TRUE if there are any CTA buttons being used at all. Otherwise, false.
the_cta($cta = 1) – ECHOs the CTA you want (1 or 2). Just pass the number you want and it’ll go get it. Defaults to #1.

Here’s a handy little starting place for integrating this into your theme.