Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24961

    Hello, I would like to add data- attribute to some of my buttons, so I can check it with jQuery.

    Now I can not find a way to do it. Is there a work around for that ?

    Thank you!

    #125324

    No, this is not possible without hacking the framework files. I can show you the starting points – in wp-contentthemespropulsionincludesadminregister-shortcodes.php search for:

    function avia_sc_button($atts, $content = null) {

    - this function creates the html code for the buttons.

    And you need to modify wp-contentthemespropulsionframeworkphpavia_shortcodesscbutton.js to add a new option field to the shortcode.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Add data attribute for a button’ is closed to new replies.