Home › Forums › Backend Issues (wp-admin) › Can't get width to change › Reply To: Can't get width to change
Sorry about that the .exists()
function is a jquery plugin that I regularly use for checking if an element is on page or not. Super Useful.
// Tiny jQuery Plugin
// by Chris Goodchild
$.fn.exists = function(callback) {
var args = [].slice.call(arguments, 1);
if (this.length) {
callback.call(this, args);
}
return this;
};
As for using the .each()
function, extremely smart thing to do. I don’t know why that slipped my mind to check for each instance of the element. Worked like a charm!
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.