TypeError issue
-
Hi all,
I am building a custom theme for a new client and im trying to implement the awesome typed.js within the code of my theme. so this is what i have got in my code so far..
In my header.php I am calling this…
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
In my front-page.php where I want the typed.js to work I have this….
<script src="<?php echo get_template_directory_uri(); ?>/js/typed.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ $("#typing").typed({ stringsElements:("#typed-strings"), typeSpeed:30, backDelay:500, loop:true, showCursor:true, }); }); </script> <section id="typed-wrapper"><h1 class="welcome">Welcome to Monkeypants we: <span id="typing style=white-space:pre"></span></h1></section> <section id="typed-strings"> <h2>Phrase or Sentence 1</h2> <h2>Phrase or Sentence 2</h2> <h2>Phrase or Sentence 3</h2> <h2>Phrase or Sentence 4</h2> <h2>Phrase or Sentence 5</h2> </section> </section>
You can see my issues here with this screengrab.
Im assuming it’s a jQuery conflict but I know that I am only calling the 1 jquery cdn link as this is a custom built theme that I am developing from the groundup.
Many thanks for any help.
Phillip Dews
- The topic ‘TypeError issue’ is closed to new replies.