Title: Widget &#8211; Conditional logic
Last modified: August 21, 2016

---

# Widget – Conditional logic

 *  [Kaltoft](https://wordpress.org/support/users/kaltoft/)
 * (@kaltoft)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/widget-conditional-logic/)
 * Hi,
 * I’m currently working on the following site: [http://www.bofinans.dk/](http://www.bofinans.dk/)
 * The page is in danish, I know, but so am I 🙂
 * My problem is that i have used the plugin Gravity Form to add a form to [http://www./bofinans.dk/investeringstest](http://www./bofinans.dk/investeringstest).
   Now the form works great and is very easy to use but i have been forced to add
   conditional logic to the form at the question “Hvem forvalter din opsparing”.
   So if a customer choose “other” they get the opportunity to write whom. But unfortunately
   this won’t work unless i add this “<? php wp_footer(); ?>” to the footer.php 
   file. And now the fun part begin. Because when i add this line of code my Widget
   Footer Left disappears from every single page! As well as my frontpage “slideshow”..
 * Any ideas?

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/widget-conditional-logic/#post-3967053)
 * Did you add it just above `</body>`?
 *  Thread Starter [Kaltoft](https://wordpress.org/support/users/kaltoft/)
 * (@kaltoft)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/widget-conditional-logic/#post-3967107)
 * Yes
 *  Thread Starter [Kaltoft](https://wordpress.org/support/users/kaltoft/)
 * (@kaltoft)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/widget-conditional-logic/#post-3967108)
 *     ```
       </div>
       <div id="footer">
           <div id="footerwrapper" class="col-full">
               <div id="footer-social">
       <img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" height="16" width="16"> <a href="https://www.facebook.com/BoFinans" target="_blank">Følg os på facebook</a> <br />
       <img src="<?php bloginfo('template_directory'); ?>/images/linkedin.png" height="16" width="16"> <a href="https://www.linkedin.com/company/2728263" target="_blank">Følg os på LinkedIn</a>
               </div>
   
               <div id="footer-sidebar-left">
                   <ul>
                       <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Widget Left') ) : ?>
                       <?php endif; ?>
                       <?php wp_footer(); ?>
                   </ul>
               </div>
   
               <div id="footer-copyright">
               Copyright &copy; 2012 - BoFinans | <a href="#">Privatlivpolitik og Cookies</a></strong>
               </div>
           </div>
       </div>
       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
       <script src="<?php bloginfo('template_directory'); ?>/javascript/jquery.nivo.slider.js" type="text/javascript"></script>
       <script type="text/javascript">
       $(window).load(function() {
       $('#slider').nivoSlider({
       pauseTime: 8000
       });
       });
       </script>
       +++++++++
       </body>
       </html>
       ```
   
 * I added “<? php wp_footer(); ?>” instead of the “++++” (which of course isen’t
   a part of the code.. 😉

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

The topic ‘Widget – Conditional logic’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [gravity](https://wordpress.org/support/topic-tag/gravity/)
 * [logic](https://wordpress.org/support/topic-tag/logic/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Kaltoft](https://wordpress.org/support/users/kaltoft/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/widget-conditional-logic/#post-3967108)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
