Home Forums Weaver Xtreme Theme javascript placement

Topic Resolution: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #66378
    merlojh
    Participant

    I need to put this code in for Mail Chimp where should I put it

    Home

    <script type=’text/javascript’ src=’//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js’></script><script type=’text/javascript’>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]=’EMAIL’;ftypes[0]=’email’;fnames[1]=’FNAME’;ftypes[1]=’text’;fnames[2]=’LNAME’;ftypes[2]=’text’;fnames[3]=’ADDRESS’;ftypes[3]=’address’;fnames[4]=’PHONE’;ftypes[4]=’phone’;}(jQuery));var $mcj = jQuery.noConflict(true);</script>
    <!–End mc_embed_signup–>

    #66382
    scrambler
    Moderator

    What does mail chimp says?

    Depending on what a script does it may need to be inserted at the beginning or at the end.

    It also depends if the scripts is needed on all pages, or only on one page.

    To insert a script at the beginning on All pages, insert it in Advanced options > HEAD Section box

    #66385
    merlojh
    Participant

    Only one page

    #66392
    scrambler
    Moderator

    Then you can put in in the Head HTML insertion area of that page, using the page custom Field.

    Read the article below on how to create a page custom Field

    Per page /post Insertion Areas with Custom Fields – Weaver Xtreme Guide (weavertheme.com)

    You follow the process to create a New custom Field in that page with the name

    page-head-code

    Then add your script in the custom Field Value box and save

    #66394
    merlojh
    Participant

    Thanks John!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.