Widget - Conditional logic (4 posts)

  1. Kaltoft
    Posted 3 years ago #


    I'm currently working on the following site: 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. 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?

  2. Pioneer Web Design
    Posted 3 years ago #

    Did you add it just above </body>?

  3. Kaltoft
    Posted 2 years ago #


  4. Kaltoft
    Posted 2 years ago #

    <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 id="footer-sidebar-left">
                    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Widget Left') ) : ?>
                    <?php endif; ?>
                    <?php wp_footer(); ?>
            <div id="footer-copyright">
            Copyright &copy; 2012 - BoFinans | <a href="#">Privatlivpolitik og Cookies</a></strong>
    <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() {
    pauseTime: 8000

    I added "<? php wp_footer(); ?>" instead of the "++++" (which of course isen't a part of the code.. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic