Very simple fix javascript problem

Terminé Publié le Nov 8, 2014 Paiement à la livraison
Terminé Paiement à la livraison

I have a simple javascript code. It works in jsfiddle. it's not working when I put it in wordpress site. JS Fiddle: [url removed, login to view] website: [url removed, login to view]

I had it in the body but figured it needed to go in the head. so I added it to display on that one page by adding <?php if (is_single( '160' ) ) { ?>

<!--guinea pig names custom JS-->

<script type='text/javascript' src="<?php bloginfo('template_directory'); ?>/js/[url removed, login to view]"></script>

<?php } ?> to header.php. Link shows up on view page source.

The two problems are: top generator isn't working at all, second one is not removing previous names when you click it again. it keeps adding to them instead of only displaying a new name,

The code works, so I don't know why it isn't working in wordpress. So, I will need you to fix it IN MY WEBSITE FILES, because outside of the website, i have it working. It's just not working inside wordpress.

I only want the javascript to load on that one post page (hence, the if/is_single, ID=160 statement in the header php file.)

If I put one generator in, it works fine. when I add two, it doesn't work.

I know this is simple for someone who understands javascript.

JavaScript Architecture Logicielle

Nº du projet : #6702644

À propos du projet

7 propositions Projet à distance Actif Nov 8, 2014

Décerné à:

vkriate

Hi, I am ready to start the project as soon as you hire me. Please visit my profile for more details. Please click on the link to view my profile: http://www.freelancer.in/u/vkriate.html http://vkriate Plus

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(0 Commentaires)
0.0

7 freelances font une offre moyenne de 28 $ pour ce travail

manhpham

Hello, I am JavaScript expert. I am willing to help you do this project right now. Please contact me. Thank you

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(24 Commentaires)
4.4
khyatiraval

Dear Employer, I have rich experience with these stuffs and already made huge research on it. I should not claim I am best in words but will prove with my work . Based on our expertise and long term experience, I can g Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(14 Commentaires)
4.4
fcis01

Hi there, We have gone through your requirement and understood your job task, and can do easily. we have 7+ years experience in html, css, javascript , ajax, php, CMS and MVC. we have developed various type of web Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
aamanitech

A proposal has not yet been provided

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0