Tag: javascript

  • Force select2 inputs to auto-focus when clicked

    by

    I have a lot of admin pages where an input (often inside a custom field metabox) is using a select2 dropdown. On some pages, I’ll notice that when I click on the input, it doesn’t automatically focus the text input so that I can start typing, which is usually what I want. So this adds…

    Read More →

  • Add back button to admin headings on WordPress Admin pages

    Add back button to admin headings on WordPress Admin pages

    by

    Sometimes I’m on an admin screen and I just wanna go back to the parent screen. For example, I’m editing a single post and I wanna go back to the All Posts screen. In that example, it’s easy. But for others, I don’t like futzing around to find the correct menu item. So this script…

    Read More →