December 31, 2012 at 3:48 pm #8635
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 #8637
It 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.
December 31, 2012 at 6:02 pm #8644
Thanks for the info. Here's what I added:
Hey, I just played with the spacing and it's working!December 31, 2012 at 6:11 pm #8647
That'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.
December 31, 2012 at 6:13 pm #8648
Hey, thanks. I will do that... and HAPPY NEW YEAR!December 31, 2012 at 6:15 pm #8649
It doesn't work without this:
Well, 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.
You must be logged in to reply to this topic.