-
Notifications
You must be signed in to change notification settings - Fork 184
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
[Tips] Creating a single col(colspan 2) subheading field #101
Comments
Great idea! |
hi, this is not added in the core, I am just sharing my example code @pablo-sg-pacheco |
ok, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes I need to create sub heading or heading field for showing some separator.
I am trying to write we can achieve that. The way wordpress renders the setting api it creates tabular format, fields labels in one col and field in 2nd col, we need to create a col with 2 col width or 'colspan' needs 2.
new field type: subheading
how to declare field
now , in the setting class you need to add the field definition method
we are almost done, now in the setting api in javascript code area put some js code like below
The text was updated successfully, but these errors were encountered: