Hello!
I see javascript erros on your site:
Uncaught TypeError: Cannot read property ‘msie’ of undefined walhez.com/:73
Uncaught TypeError: Object [object Object] has no method ‘colorbox’
You need to fix them first. Just remove colorbox script – it is not compatible with jQuery 1.10
Thread Starter
Walhez
(@walhez)
Hello Max Bond:
I made the changes in the header.php, but the plugin is still not working. What other changes should I make?
Regards
One error still exists:
Uncaught TypeError: Object [object Object] has no method 'colorbox' walhez.com/:157
Remove or comment lines 152-157
Thread Starter
Walhez
(@walhez)
Hello Max Bond:
I do not know what changes to make in the header.php. What I did before is to erase the line that called the script of colorbox:
<?php wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-1.10.1.min.js'); ?>
<?php wp_enqueue_script('jtwt', get_template_directory_uri() . '/js/jtwt.js'); ?>
<?php wp_enqueue_script('jquery.nivo.slider', get_template_directory_uri() . '/js/jquery.nivo.slider.pack.js'); ?>
<strong><?php wp_enqueue_script('jquery.colorbox', get_bloginfo('template_directory'). '/js/colorbox/jquery.colorbox-min.js'); ?>
However, regarding the lines 152 to 157, I have no idea what to do with them:
url: '<?php echo admin_url('admin-ajax.php'); ?>',
data: jQuery(form).serialize()+'&action=pyre_contact_form',
type: 'POST',
success: function() {
$('.email_sent').fadeIn(400).delay(5000).fadeOut(400);
}
I do apreciate your unconditional help and I thank you for that.
What I did before is to erase the line that called the script of colorbox
That was right move!
Now you need to find in source files where this huge chunk of code (line 93 – 209) located.
Note. I am reffering lines not in your php source files, but lines from html-source code of your frontpage!! Lines 93-209 is a javascript code.
Thread Starter
Walhez
(@walhez)
Hello Max Bond:
I erase all of that chunk of code because it was for a feature of the blog that I no longer use. Yet, the plugin is not working. There must be something else that I am missing.
Many thanks for your desire to help!
Regards
Thread Starter
Walhez
(@walhez)
Many many thanks Max Bond! The plugin now works. For further learning, could you tell me what was going on? Was it conflicting with the jQuery functions and scripts? And also, how did you know what were the things that needed to be fixed?
Again, many thanks! You are awesome!
Regards
For further learning, could you tell me what was going on?
I think, you forgot to clear cache. When it was cleared, the plugin began to work!
Was it conflicting with the jQuery functions and scripts?
Javascript errors can block futher execution javascript code. Keep your blog clean! )
And also, how did you know what were the things that needed to be fixed?
It’s just an experience. I am supporting users for about 6 months.