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

  • SEARCH
  • Home
  • 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 9046275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:37:21+00:00 2026-06-16T11:37:21+00:00

My site is built with WordPress, and recently I’ve been adding some basic javascript

  • 0

My site is built with WordPress, and recently I’ve been adding some basic javascript to it: RossPW.com

However, all the javascript I’ve added doesn’t seem to work, and I can’t figure out why for the life of me!

For example, I added the following simple snippet to the header, to fade in the — but this doesn’t work:

<script type="text/javascript">
$('body').hide();
$('body').fadeIn(3000);
</script>

To try and troubleshoot this so far, I have tried two things:

1) Properly added wp_enqueue to the header.php (this has been known to cause some problems with wordpress in the past:

<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?>

2)I also tried included javascript as an external .js file here, with some basic JS to animate the header or scroll to the top — this hasn’t worked either.

Any help would be much appreciated — thanks!

UPDATE:
In order to ensure that js/jquery are loaded properly. I’ve tried this basic alert — which does in fact work!

<script type="text/javascript">
       alert('ALERT!')
</script>

However, all the other javascript I’ve written does not — and I can’t figure out why. The javascript I’ve written seems to be fine, as seen here: jsfiddle.net/v9NSR/

  • 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-16T11:37:23+00:00Added an answer on June 16, 2026 at 11:37 am

    Two Things to fix –

    • Error: SyntaxError: illegal character Source File:
      http://rosspw.com/wp-content/themes/rosspw2013/js/rosspw.js Line: 21,
      Column: 5 Source Code: });​ ;​
    • Try adding this JS code just before you are closing the body tag.

    Let me know if it works for you or not.

    Try to use Firebug for debugging.

    For better Understanding Check this screenshot –

    As you are using jquery before its been loaded.

    jQuery

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

Sidebar

Related Questions

I have a live site built in Wordpress at www.site.com/name1. The client wants a
I have a wordpress site that was built for me by a developer some
I have an existing site built with CodeIgniter at example.com. I have a WordPress
i just upgraded to wordpress 3.3 and built a really basic template for some
I have more than 3000 members on a site built using wordpress. I am
I have built a site in wordpress and the home page is really screwed
I have a Wordpress managed web site at http://www.urbanvision.org.uk/ I have built it and
I have a asp.net web site built with .net 2.0 framework. we recently purchased
I have a site built with Symfony 1.2. I'm trying to integrate Wordpress 2.8.4
Alright, I have a wordpress site, that I want to have a clientportal built

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.