Home Forums Feature Requests Please add a specific class or id to "Save Options" button Reply To: Please add a specific class or id to "Save Options" button

  • Hi Elliot,

    Thanks for explanation. It makes sense to me.

    Actually absence of a class is not a big deal for me personally, I have resolved this by using [type=”submit”].acf-button

    But please consider that:

    • Many plugins use class ‘button-primary’ (and other button classes) for their buttons successfully. For all I know, it’s not a common practice to use this class in jQuery to assign some functionality to the button.
    • WordPress itself uses this class (and some other for the same button) mostly for proper styling. For example, admin theme developers can use it to identify main “blue button” of the page and redesign it. If some plugin does not have a proper class its buttons should be designed separately. (ACF is a popular plugin, though, so developers can consider to create a solution especially for it like I did it.)
    • You can just add an ID like “acf-option-page” (it’s a single button per page even in case someone has a few Options Pages). I think it may be helpful for other plugin developers too.

    Anyway, thank you. I consider your plugin the best WordPress developers’ framework at the moment.