Title: [Plugin: Gravity Forms Directory] Set Column Width
Last modified: August 20, 2016

---

# [Plugin: Gravity Forms Directory] Set Column Width

 *  Resolved [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/)
 * Is there anyway to set the width of columns. I have a phone number that is being
   split across 2 lines, doesn’t look very professional. It looks OK in FireFox 
   but Chrome and IE split the number.
 * Thanks!!
 * [http://wordpress.org/extend/plugins/gravity-forms-addons/](http://wordpress.org/extend/plugins/gravity-forms-addons/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/page/2/?output_format=md)

 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736466)
 * Anyone??? Please… Even if the answer is no. I have a client waiting for a listing
   to be added to their site.
 *  Plugin Author [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736467)
 * Use CSS to set width.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736468)
 * At the moment CSS sets all the columns to the same width as there doesn’t seem
   to be any way to target individual columns. Is there a way to get different classes
   set on individual columns so a different width can be set for each column?
 * At the moment in the table header all columns have a class of “manage-column”.
   In the body all the cells have a class of “text”. I was hoping I had missed a
   setting somewhere that would either add classes or set the width.
 *  [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736477)
 * There must be a way to assign some AddFilter thing to give each FormID it’s own
   CSS Class
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736483)
 * I ended up editing gravity-forms-addons.php and adding an id to the TH cell.
 * `<th id="gfa-col<?php echo $field_id ?>" scope="col" class="manage-column">`
 * I also added it to the jssearch line as well. Can you see any problem with this
   Zack? It would be great if this (or something similar) could be added to the 
   plugin to aid in the styling.
 * Thanks for the plugin Zack.
 *  [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736496)
 * A bit out of my expertise, unfortunately.
    I looked in the php file but was unable
   to find where or how to add/replace the CSS classes with the FormID.
 * It’s a pity this plugin is so unsupported – great potential indeed.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736497)
 * [@rastarr](https://wordpress.org/support/users/rastarr/) I agree with you on 
   the potential.
 * As for the line numbers I think these should be pretty close. Change line 1457
   to add the ID.
    `<th id="gfa-col<?php echo $field_id ?>" scope="col" class="manage-
   column" onclick="Search...`
 * and line 1459 to
    `<th id="gfa-col<?php echo $field_id ?>" scope="col" class="
   manage-column">`
 * and line 1461 also to
    `<th id="gfa-col<?php echo $field_id ?>" scope="col" class
   ="manage-column">`
 * This will ad IDs gfa-col1, gfa-col2 etc to the column headers which you will 
   be able to style in style.css. I hope that helps.
 *  [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736498)
 * Thanks Darren.
 * I was really after styling the `<li>` Classes.
 * Any chance you know where they might be and coded?
 *  Plugin Author [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736499)
 * I’ll add IDs to the next release. Thanks for the idea.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736505)
 * Thanks Zack!!
 *  [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736506)
 * Oh for sure. Thank you.
    It’ll allow the plugin much more power
 *  Plugin Author [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736533)
 * Coming very soon!
 *  [mshetler](https://wordpress.org/support/users/mshetler/)
 * (@mshetler)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736538)
 * I see field ID’s have been added. Can you clue me in how to structure CSS?
 *  Plugin Author [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736539)
 * Sorry, I don’t provide CSS support.
 * [http://www.w3schools.com/css/](http://www.w3schools.com/css/)
 *  [mshetler](https://wordpress.org/support/users/mshetler/)
 * (@mshetler)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/#post-2736540)
 * Just looking for the ID/Class to use — is it in the form of #gf-col-(form ID)-(
   field ID)?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/page/2/?output_format=md)

The topic ‘[Plugin: Gravity Forms Directory] Set Column Width’ is closed to new 
replies.

 * ![](https://ps.w.org/gravity-forms-addons/assets/icon-256x256.jpg?rev=996787)
 * [Gravity Forms Directory](https://wordpress.org/plugins/gravity-forms-addons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-addons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-addons/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-addons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-addons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-addons/reviews/)

 * 16 replies
 * 4 participants
 * Last reply from: [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-directory-set-column-width/page/2/#post-2736541)
 * Status: resolved