Title: Hide Empty Custom Fields
Last modified: December 1, 2016

---

# Hide Empty Custom Fields

 *  Resolved [kpmarz](https://wordpress.org/support/users/kpmarz/)
 * (@kpmarz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/)
 * Hello,
 * I have created custom fields that are only relevant for some of my products. 
   On the individual product pages that don’t have input for the custom field, the
   empty field still takes up space.
 * It there a way to only have the custom field display if there is content? Or 
   a way to limit it to only certain pages?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8506924)
 * Hi kp,
 * You can make use of the “Hide Blank Custom Fields” setting in the “Premium” area
   of the “Options” tab
 *  Thread Starter [kpmarz](https://wordpress.org/support/users/kpmarz/)
 * (@kpmarz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8520303)
 * Sorry for my slow response. I have selected “yes” for “Hide Blank Custom Fields”.
   However, there are still blank spaces. Here is a link to an example – [http://www.francescorinaldi.com/products/product/classic-alfredo-sauce/](http://www.francescorinaldi.com/products/product/classic-alfredo-sauce/)
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8520983)
 * Hi KP,
 * I don’t see any empty custom fields on that page. Can you let us know what you’re
   referring to?
 *  Thread Starter [kpmarz](https://wordpress.org/support/users/kpmarz/)
 * (@kpmarz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8521107)
 * Here is an image: [http://www.francescorinaldi.com/wp-content/uploads/2016/12/screenshot.jpg](http://www.francescorinaldi.com/wp-content/uploads/2016/12/screenshot.jpg)
 * Image 2: Under “Original Recipe” The next 3 visuals are contained within 3 custom
   fields.
    Image 1: This product does not have anything entered into the first 
   2 custom fields.
 * As you can see, there is just an empty space where the pictures would be in custom
   fields 1 & 2. I am looking to get rid of that space and have the empty custom
   fields display none. This way, custom field 3 will be directly underneath “Classic
   Alfredo Sauce”.
 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8525974)
 * Hi Kp,
 * It looks like you’re using the custom product page option. This layout uses set
   heights and widths based on what you create in the backend so there’s unfortunately
   no way to hide the whole custom field when it’s not populated.
 * In this case, I’d suggest switching the Product Page Type (in Options->Premium)
   to either “Tabbed Product Page” or the “Default” option to see if it works better
   with your current custom fields.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hide Empty Custom Fields’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-product-catalogue/assets/icon-128x128.png?rev=1805317)
 * [Ultimate Product Catalog](https://wordpress.org/plugins/ultimate-product-catalogue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-product-catalogue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-product-catalogue/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-product-catalogue/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/hide-empty-custom-fields/#post-8525974)
 * Status: resolved