-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add text/HTML to the form without input field #12
Comments
Do you have any solutions in mind? |
Maybe a solution would be to include another callback type in the class which just renders text/HTML without displaying an option. Then you can add the appropriate callback to an array element in the get_settings_fields() function. |
It seems to me that this is already possible with the "html" field, right? |
@herewithme your modifications looks impressive, the only thing I didn't like is tabs. I prefer tabs, because it doesn't need a page load. Other than that, it would be good for a pull request. |
I agree, the tabs is typically practiced. But in the implementation you propose each tab has its own "submit" button which is against productive because each form contained in the tabs is truly independent. In fact, it loses the user saves the contents of a single form, and not all the tabs. |
Yeah I understand the concern, but as every tab has it's own submit button, |
I do not share your opinion. I myself was convinced that the "save" button saved the data from all tabs, not just the current tab. |
I have a fork of this project that I'm creating a wrapper for. The save button saves all data across the tabs. |
I would like to second the opinion that there should be a single "Save" button that appears regardless of which tab is active, and saves all data across the tabs. That's just good User Interface Design doing what you would expect a well-designed interface to do. |
The wordpress-settings-api-class uses the show_forms function to generate the form pages. It is now only possible to generate input fields, sections and descriptions, which makes the layout of the form quite limited.
Would it be possible to add an option for just displaying plain text/HTML as well (so the form includes some text, or a link, without an input field).
I've included a screenshot of WordPress SEO by Yoast to show what I mean:
The text was updated successfully, but these errors were encountered: