• Resolved Behnam Nikkhah

    (@bnikkhah)


    Currently the plugin has Primary and Secondary styles to choose from, but would it also be possible to add in more styles? The styles I’m talking about are the following:

    • Success
    • Danger
    • Warning
    • Info
    • Light
    • Dark

    These are all the official button styles as per the documentation here.

    In addition, it would also be good to add in link targets such as _self (link opens in the same domain) or _blank (link opens in a new tab).

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor tschortsch

    (@tschortsch)

    Hi @bnikkhah. You’re able to add further styles with the wpBootstrapBlocks.button.styleOptions JavaScript filter. You’ll find an example on how to use it here: https://github.com/liip/bootstrap-blocks-wordpress-plugin#wpbootstrapblocksbuttonstyleoptions.

    The button block hasn’t seen much love since the initial release of this plugin. Resource wise we focused on maintaining and enhancing the Bootstrap grid which might probably be the most used feature of Bootstrap. But you’re totally right, a target option should be available for this block. Hopefully I’ll find some time in the near future to implement this.

    Plugin Contributor tschortsch

    (@tschortsch)

    We released version 3.1.0 of the plugin yesterday which adds the “Open in new tab” feature on the button block.

    Thread Starter Behnam Nikkhah

    (@bnikkhah)

    @tschortsch Ok, that’s great news! Thanks for letting me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra button styles’ is closed to new replies.