Community Forums › Forums › Archived Forums › General Discussion › Need help added header scripts – getting (you don't need this) in header
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by Bill Murray.
-
AuthorPosts
-
December 31, 2012 at 3:48 pm #8635webcamiParticipant
I need help!!!!!
I need to add the following script in the header to make a membership log in work on this site...
When I do so, I get (you don't need this) in the header area of the page. I am doing so via THEME SETTINGS. I also loaded SIMPLE HOOKS and got the same results and also attempted to load this in the header.php file and all ended with the same results. The code is currently in the THEME SETTINGS under GENESIS on the dashboard.
Please advise how I can fix this.
I miss the old forum! 🙂 I'm using ASSOCIATE. Are their areas for each child theme here? I can only find this to post in.
December 31, 2012 at 5:16 pm #8637Bill MurrayMemberIt sounds like you are going about it the right way. Can you post the script you are to load? Since the forum may mess up script that you attempt to paste in, you can try putting a space after the opening and closing bracket, as in . If that doesn't work, replace the word script with something else.
Web: https://wpperform.com or Twitter: @wpperform
We do managed WordPress hosting.
December 31, 2012 at 6:02 pm #8644webcamiParticipantThanks for the info. Here's what I added:
<script type="text/javascript" src="https://s3.amazonaws.com/technique-webcontent/js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="https://s3.amazonaws.com/technique-webcontent/js/common/webtoolkit.sha1.js"></script>
<script type="text/javascript" src="https://s3.amazonaws.com/technique-webcontent/js/common/external_login.js"></script>December 31, 2012 at 6:05 pm #8645webcamiParticipantHey, I just played with the spacing and it's working!
December 31, 2012 at 6:11 pm #8647Bill MurrayMemberThat's good, but you still have a problem. Your very first line is loading jQuery, which WP already loads. So you don't want to load a 2nd copy. Try deleting that first line and re-test.
In general, it's ok to add scripts the way you are doing - provided that you are aware of what you are loading and don't load duplicate or conflicting scripts. The ideal way is to enqueue them, and that would have saved you from loading a duplicate jQuery. Since loading them via the header script box in theme settings is easier, always be vigilant to what you are loading.
Web: https://wpperform.com or Twitter: @wpperform
We do managed WordPress hosting.
December 31, 2012 at 6:13 pm #8648webcamiParticipantHey, thanks. I will do that... and HAPPY NEW YEAR!
December 31, 2012 at 6:15 pm #8649webcamiParticipantIt doesn't work without this:
<script type="text/javascript" src="https://s3.amazonaws.com/technique-webcontent/js/jquery/jquery-1.4.4.min.js"></script>
December 31, 2012 at 7:55 pm #8659Bill MurrayMemberWell, I would go back to the developer of the script and explain that you are loading that on a WP site that already loads jQuery (the version will depend on your WP version) and ask them how to make their script work. You shouldn't load 2 copies of jQuery, because at some point you'll find something that is broken.
Web: https://wpperform.com or Twitter: @wpperform
We do managed WordPress hosting.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.