Forums

How to include custom jquery (3 posts)

  1. Civil_777
    Member
    Posted 7 months ago #

    I have some JQuery that I would like to uses in WordPress. I developed it outside of WordPress, and it's working fine, but I am having trouble getting it to work inside of WordPress. The problem is that I am using JQuery custom theme which uses three files instead of the usual one: jquery-ui-1.8.16.custom.css, jquery-1.6.2.min.js, jquery-ui-1.8.16.custom.min.js. Is it possible to include these three files in this one WordPress page instead of the JQuery file normally included?

    Following is the head section of my working file that was developed outside WordPress.

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>jQuery UI Example Page</title>
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <style>
     body { font-size: 62.5%; }
     label, input { display:block; }
     input.text { margin-bottom:12px; width:95%; padding: .4em; }
     fieldset { padding:0; border:0; margin-top:25px; }
     .ui-dialog .ui-state-error { padding: .3em; }
     .validateTips { border: 1px solid transparent; padding: 0.3em; }
    </style>
    <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="js/contact_us.js"></script>
    </head>

    Thanks for any help.

  2. keesiemeijer
    moderator
    Posted 7 months ago #

  3. Civil_777
    Member
    Posted 7 months ago #

    Thanks, that is what I need. I have a few more questions about how to use wp_enqueue_script. I will post those questions separately.

Reply

You must log in to post.

About this Topic