Need help added header scripts – getting (you don't need this) in header

Community Forums Forums General Discussion Need help added header scripts – getting (you don't need this) in header

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  Bill Murray 1 year, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8635

    webcami
    Participant
    Post count: 49

    http://webcamihosting.com/pj/

    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.

    #8637

    Bill Murray
    Participant
    Post count: 572

    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.


    Web: http://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #8644

    webcami
    Participant
    Post count: 49

    Thanks 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>

    #8645

    webcami
    Participant
    Post count: 49

    Hey, I just played with the spacing and it’s working!

    #8647

    Bill Murray
    Participant
    Post count: 572

    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.


    Web: http://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #8648

    webcami
    Participant
    Post count: 49

    Hey, thanks.  I will do that… and HAPPY NEW YEAR!

    #8649

    webcami
    Participant
    Post count: 49

    It 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>

    #8659

    Bill Murray
    Participant
    Post count: 572

    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.


    Web: http://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.