Okay
  Public Ticket #188064
Add a class to button shortcode
Closed

Comments

  • Nick started the conversation

    How can I add a class to the button shortcode?

  • Nick replied

    More specifically- I need to add a class to the button at the bottom of a pricing table so clicking the button will open the modal. Im using the Easy Modal plugin, all I need to do is add a class to the button so it opens in a modal. 

  •  8,469
    Tahir replied

    Hey Nick!

    Unfortunately there is not an option of adding an extra class to the button but you can however pass a class via the color attribute to hack it. 

    [button color="yourclass" url="" text=""]

    Cheers


    ThemeNectar Support Team 

  • Nick replied

    This was a perfect workaround for adding a class, thanks. 

  • brandonthebuck replied

    Does this still work for 8.5.5?

  •  8,469
    Tahir replied

    Yes it should work .

    Be.st 


    ThemeNectar Support Team 

  • brandonthebuck replied

    A Text box is able to dynamically add a shortcode to a URL, but this isn't possible with a button, both the URL form entry, color attribute, or class reference. Is there a way for the URL in a button to be referencing a separate element Class or Element ID?

  •  8,469
    Tahir replied

    Hey Again,

    No i am afraid you will have to use the Row and Column Extra Class Field to target the individual buttons. 

    Be.st 


    ThemeNectar Support Team