WordPress.org

Ready to get started?Download WordPress

Forums

Widget - Conditional logic (4 posts)

  1. Kaltoft
    Member
    Posted 1 year ago #

    Hi,

    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 Valley Web Design
    Member
    Posted 1 year ago #

    Did you add it just above </body>?

  3. Kaltoft
    Member
    Posted 12 months ago #

    Yes

  4. Kaltoft
    Member
    Posted 12 months ago #

    </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.. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic