• Hi folks,

    I’d like to add this piece of code to header.php:

    <script type="text/javascript">
    		$(function() {
                $("#navmenu").lavaLamp({
                    fx: "backout",
                    speed: 700,
                    click: function(event, menuItem) {
                        return true;
                    }
                });
            });
        </script>

    I am placing it before the php code to call Jquery:

    <?php wp_enqueue_script("jquery"); ?>

    But it always appears BEFORE the jquery include and generates an undefined error.

    Can anyone please help me get this to render after the jquery file include?

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to add javascript but keeps appearing at top of page and not in order’ is closed to new replies.