Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Konrad Pilch
2,435 PointsPlease help me to solve these JS loading problem
Heres the website im trying to debug from JS errors. It doesn't load it or make anything. Or it does load but it doesn't work. What can i do? i saw that there was some JS problem or jQuery from the contact form 7 in script.js which I believe its their fault? and its not even sending me a message when i submit even tho everything is saying i submitted.
Im using WordPress for this site. I have developed that theme, and JS is dead.
2 Answers

Jonathan Grieve
Treehouse Moderator 90,956 PointsThe first thing to try is to make sure you're removing version numbers from your CSS links. If you view the source you can see them showing up.
Try adding somethng like this into your functions.php file
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
Also remember jQuery is included with Wordress so you may need to remove any hard coded links to jquery.
Good luck.

Sergio Alen
26,726 PointsCan you explain what are you trying to do here?
function my_init() {
wp_deregister_script('jquery');
// load the local copy of jQuery in the footer
wp_register_script('jquery', 'js/jquery.js', false, '2.11.1', true);
// or load the Google API copy in the footer
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/2.11.1/jquery.min.js', false, '2.11.1', true);
wp_enqueue_script( 'jquery_js', get_template_directory_uri() . 'js/jquery.js', array('jquery'), '', true );
}
add_action('init', 'my_init');
remove this hook completely see if that fixes it

Konrad Pilch
2,435 Pointsoh , xd i fixed that, thank you for your answer, i will have look a this as wlell.
But what im on about, is how do i make a parallax effect on my blog pagE? because when i do it, the image goes straight top and will never see it again.
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsIt has no effect.
These are my functions
Obeviously i don thave any hardcoded code xd all dynamically with functions.