Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8456783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:38:13+00:00 2026-06-10T12:38:13+00:00

Well, the title is pretty explanatory… I am building a custom theme where all

  • 0

Well, the title is pretty explanatory…

I am building a custom theme where all the fancy jQuery stuff (sliders, galleries, toggle, tooltips, etc) are manually added to head of the document, and of course, I call jQuery manually too. I prefer to work on this way instead of running wordpress plugins.

But the problem is…

There is one single plugin out there that I am not able to live without: WP-POLLS.
And what happens? As soon as I start this plugin, it calls jQuery again! And all my other stuff gets broken.

I can see 3 ways:

1 – Editing the wp-polls PHP file and remove this its jQuery calling/including

2 – Editing the wp-polls PHP file and try to insert a verification to see if jQuery is already loaded in the lines where it (re)loads/(re)includes the jQuery

3 – Learn the correct way to perform the jQuery including for my stuff that will not conflict with WP-Polls.

Any ideas, guys?
Thanks sooo much.
C.


EDIT

I think I found the way to solve the issue.
Maybe it is not the professional method, but apparently it worked!

My WP header.php was:

<html>
<head>
   // Library
   jQuery library including

   // My own manual fancy stuff
   Slider
   Carousel
   Tooltip
   Etc

   // WP Head stuff
   wp_head();
</head>

Then, I changed to:

<html>
<head>
   // WP Head stuff
   wp_head();

   // Library (Removed OUT!)
   // jQuery library including

   // My own manual fancy stuff
   Slider
   Carousel
   Tooltip
   Etc
</head>

And added, to my theme functions.php file the following:

function load_my_scripts() {
if (!is_admin()) {
wp_deregister_script( 'jquery' );
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
wp_enqueue_script('jquery');
} 
} add_action('init', 'load_my_scripts');

Now, WP-POLLS and all my fancy stuff are working fine.
But, I am not sure about…

Is there any recommendation about including wp_head() in the top of the HTML ? If I remember well it should be ever included right before the closing tag.

And, in the wp_register_script, it is better to call a local jQuery library or the google one?

Thanks to all people who are watching this thread!
Regards,
C

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:38:15+00:00Added an answer on June 10, 2026 at 12:38 pm

    The best solution is to add jQuery using wp_enqueue_script() – like you did in your edit – instead of adding it manually. When using wp_enqueue_script(), no matter how many times it is called from plugins or the theme, it will only output each particular script once. This prevents problems like jQuery being included twice.

    As for the placement of wp_head():

    Fire the ‘wp_head’ action. Put this template tag immediately before
    tag in a theme template (ex. header.php, index.php).

    Finally, I can’t give a general answer to whether it’s better to use the local jQuery library or the one from Google, but in your case, I would recommend sticking with the local one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well the title pretty much says it all. I had: $strata = new Zend_Form_Element_Select('strata');
well, the title pretty much says it all. here's a little info: i have
Well, the title is pretty much self-explanatory. I've seen Quantian , but it's pretty
Well, the title pretty much says it all. I'm calling my server and when
Well, the title pretty much says it all. I start up Qt Creator, I
Well the title pretty much sums the question. The only thing I found is
Well, the title pretty much states it. I want to be able to draw
Well, the title's pretty much it: if I sat a non-techie/my mum/twelve-year old boy/cocker
The title explains it pretty well, but I'm trying to build a 'for loop'
My title sums this up pretty well. My first though it to provide a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.