Title: Additional width options in optgroups (with patch)
Last modified: February 19, 2025

---

# Additional width options in optgroups (with patch)

 *  [Steven](https://wordpress.org/support/users/stgoos/)
 * (@stgoos)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/additional-width-options-in-optgroups-with-patch/)
 * I really appreciate and enjoy the functionality and the effectiveness of your
   plugin. Too bad this is (just like Custom Database Tables) not built in functionality
   within ACF.
 * I took the liberty to give your code a bit of a tweak so it supports additional
   width options now. From a 12 grid setup to x column based setups. With the latter
   I removed the duplicates with the other x column based options.
 * The files I’ve updated are:
    - **acf-column.php**
       * changed the version number from 1.2.5 into 1.3.0
    - **assets/css/acf-column.css**
       * all the original .acf-field-columngroup.column-layout-x_y definitions are
         still there, I just extended it with the new options
       * I added .inside-pad so that you can correct the inner padding between fields
         on a row within the column, this is only needed when the fields are not
         set to the full width of the column so it’s a manual class to be added 
         by the user 
    - **fields/acf-column-v5.7.php**
       * updated the version number from 1.2.1 to 1.3.0
       * updated the ‘choices’ array, which now include optgroup titles as well
    - **fields/acf-column-v5.php**
       * updated the version number from 1.2.1 to 1.3.0
       * left the ‘choices’ array the same as in your version as I’m not 100% sure
         if the new setup with optgroups will work in earlier versions… if you are
         able to test it on an older setup then just copy the ‘choices’ array over
         from the 5.7 version 
 * I’ve tested it with PHP 8.2, WordPress 6.6.1, and ACF PRO 6.3.5
 * Last but not least – I’ve kept all of the original option values in the droplist
   for compatibility for existing users.
 * Would you consider updating your plugin in the WordPress repository with this
   updated version (which still needs some work to the README)? 🙂
 * You can download the updated code from my Google Drive: [https://drive.google.com/file/d/1j9l9Z-nCurl9c1kuy_1ZyehnGe5svw8k/view?usp=sharing](https://drive.google.com/file/d/1j9l9Z-nCurl9c1kuy_1ZyehnGe5svw8k/view?usp=sharing)

The topic ‘Additional width options in optgroups (with patch)’ is closed to new 
replies.

 * ![](https://ps.w.org/acf-columns/assets/icon-256x256.png?rev=1620885)
 * [ACF Columns](https://wordpress.org/plugins/acf-columns/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-columns/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-columns/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-columns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-columns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-columns/reviews/)

## Tags

 * [extention](https://wordpress.org/support/topic-tag/extention/)

 * 0 replies
 * 1 participant
 * Last reply from: [Steven](https://wordpress.org/support/users/stgoos/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/additional-width-options-in-optgroups-with-patch/)
 * Status: not resolved