Skip to content

pvtl/wp-button-shortcode

Repository files navigation

A Wordpress Plugin for adding Buttons from the editor

  • Install and activate the plugin
  • From any WYSIWYG editor in WP, click the new 'Button' button which adds the [button] shortcode to the editor
    # It turns this (from the editor):
    [button size="small" text="Learn More" href="/about-us" target="_blank"]

    # Into this (on the front-end):
    <a href="/about-us" class="button small" target="_blank">Learn More</a>

modal

modal

Installing with Composer (if using Bedrock)

composer config repositories.wp-button-shortcode git https://github.com/pvtl/wp-button-shortcode
composer require pvtl/wp-button-shortcode