Support

Account

Home Forums Front-end Issues insert some data attribute inside the post_title input field

Unread

insert some data attribute inside the post_title input field

  • Hi,

    I’d like to insert some data attribute into the post_title input field. How can I do this?

    Original.
    <input type=”text” id=”acf-_post_title” name=”acf[_post_title]” required=”required”>

    What I want to do is add this: data-swplive=”true”
    So the output would be
    <input type=”text” id=”acf-_post_title” name=”acf[_post_title]” required=”required” data-swplive=”true”>

    Please tell me the solution.

    Thank you.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.