Home › Forums › Front-end Issues › Markup for newly created taxonomy items in popup › Reply To: Markup for newly created taxonomy items in popup
for what it’s worth, acf-input.js:9202:
// create new li
var $li = $([
'<li data-id="' + term.term_id + '">',
'<input id="tax-check-' + term.term_id + '" type="' + type + '" value="' + term.term_id + '" name="' + name + '" /> ',
'<label for="tax-check-' + term.term_id + '">' + term.term_label + '</label>',
'</li>'
].join(''));
… that ‘fixes’ the problem for me and now works as expected.
Do you think this change would be done in the core? As previously mentioned, neither of the 3 ways is incorrect by any means. It’s just that the current way doesn’t allow much styling control.
Ideally it should be input, then label.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.