Black Screen Issue: Please update your theme to ensure WordPress 5.6 compatibility. Dentalia 2.1 and Recycle 2.1 are now available on ThemeForest. 

Okay
  Public Ticket #2560667
Add Class/ID to Orion Buttons
Closed

Comments

  •  1
    werm42 started the conversation

    In order to trigger a modal window from a button click – a class or id needs to be able to be added to a button.


    How would we go about adding a field to the Orion Button that will allow a field for populating the button's id or class with additional values?

  •  530
    OrionThemes replied

    Hi,

    Unfortunatly it is not possible to add an ID or additional class name through the orion Button widget.
    But it can be created by copying the button HTML into the Custom HTML widget. Then you can add any class or id to it. If the same button will be used multiple times, you could also create a static block which you can then add to any page with a Static block widget.

    Here are the steps:

    1. Create a New Static block, name it a Button 1 (for example).

    2. Add button HTML to the Button 1 static block with a Custom HTML widget. Here is an example button HTML:

    <a class="btn btn-c1 btn-flat btn-md" id="custom-id" href="#">A button</a>

    3. Save the static block, then go to any page and add a static block widget, and select "Buttton 1" from the select box.

    I hope this helps,

    Andrej