Title: Customizer Section
Last modified: June 4, 2019

---

# Customizer Section

 *  [Shane Taylor](https://wordpress.org/support/users/propertunity/)
 * (@propertunity)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/)
 * Does anyone know the correct syntax for checking if the options/controls in a
   specific Section of customizer.php are not empty? Trying to check if one of the
   options/theme_mods if filled out, I can’t find what I’m looking for anywhere..
 * I’m trying to do something like this:
 *     ```
       <?php if (!empty($wp_customize->get_section('special_section'))) : ?>
   
         <div>Div goes here...</div>
   
       <?php endif; ?>
       ```
   

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

 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11597627)
 * See if [this](https://github.com/maddisondesigns/customizer-custom-controls/blob/master/readme.md)
   helps.
 *  Thread Starter [Shane Taylor](https://wordpress.org/support/users/propertunity/)
 * (@propertunity)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11597750)
 * no not really. I read through all that, but my skills are intermediate at best
   and I’m not sure what I’m looking for. I’ve spent 7+ hours on this and have only
   been able to rule out what doesn’t work….
 * thanks though…
    -  This reply was modified 7 years ago by [Shane Taylor](https://wordpress.org/support/users/propertunity/).
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11597775)
 * Look towards the bottom. There are several examples of how to write it.
 *  Thread Starter [Shane Taylor](https://wordpress.org/support/users/propertunity/)
 * (@propertunity)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11597819)
 * all i see is how to create sections and settings/controls…
 * I’m trying to display a div on the frontend, and what i’m currently doing that
   works is something like this:
 *     ```
       <?php 
   
         if (
   
           ( !empty(get_theme_mod('mod1')) ) 
   
           ||
   
           ( !empty(get_theme_mod('mod2')) ) 
   
           ||
   
           ( !empty(get_theme_mod('mod3')) )   
   
         ) : 
   
       ?>
   
       <div id="mods" class="container-fluid"></div>
   
       <?php endif; ?> 
       ```
   
 * but I know doing it that way is a little hacky… just trying to check if any of
   the settings inside the parent section are being used.. instead of checking each
   theme_mod (there are over 20)
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11601974)
 * [@propertunity](https://wordpress.org/support/users/propertunity/) – please do
   not post multiple topics on the same subject. In order to keep future related
   replies all in one place, I’m closing this topic. Please continue at
    [https://wordpress.org/support/topic/wp-customizer-show-div/](https://wordpress.org/support/topic/wp-customizer-show-div/)

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

The topic ‘Customizer Section’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 5 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/customizer-section/#post-11601974)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
