Everything posted by ars
- Foundation 5
- Foundation 5
- Parallax effect doesn't work in Chrome
- Parallax effect doesn't work in Chrome
- Parallax effect doesn't work in Chrome
- Parallax effect doesn't work in Chrome
- Parallax effect doesn't work in Chrome
-
Parallax effect doesn't work in Chrome
Hi! I've made a website and tested it on all browsers and just in Chrome the parallax effect doesn't work. When I click on the nav button, nothing happens. I don't know why? Please help me!
-
Implementing jQuery and javascript in Wp
I DID IT!!!!!! Finally guys i succeed! It was so easy but I couldn't find out the reason why it didn't work. I forgot to put my scripts in my header.php and also my "mycustom script". I'd like to THANK YOU ALL @KaiserK108 and @welshhuw for the effort you put into it! Without you I couldn't find the answer! Thank you again!
- Implementing jQuery and javascript in Wp
- Implementing jQuery and javascript in Wp
-
Implementing jQuery and javascript in Wp
Yes, this is the WP version. You don't see my myscript.js, or gallery.js listed because they are not there. I put these snippets in two files (myscript.js and gallery.js) that are in my index.html head. <script type="text/javascript"> $(document).ready(function(){ $('#navi').localScroll(800); $('#usluge').parallax("50%", 0.1); $('.bg').parallax("50%", 0.4); $('#radovi').parallax("50%", 0.3); }) </script> <script type="text/javascript"> $(document).ready(function(){ $('#map').localScroll(800); $('#usluge').parallax("50%", 0.3); $('#radovi').parallax("50%", 0.3); $('#home').parallax("50%",0.3); }); </script> <script type="text/javascript"> $(document).ready(function() { $("a.gallery").fancybox({ 'openEffect' : 'elastic', 'closeEffect' : 'elastic', 'nextEffect' : 'elastic', 'prevEffect' : 'elastic', speedIn : 600, speedOut : 200, overlayShow : false }); }); </script>
- Implementing jQuery and javascript in Wp
- Implementing jQuery and javascript in Wp
-
Implementing jQuery and javascript in Wp
Thank you again @KaiserK108! The "myscript.js" is a snippet from my index.html file and also gallery.js. "myscript.js" calls the parallax.js script and the "gallery.js" my fancybox.js. About the dependency, frankly I don't undestand exactly where to put what? I fixed the errors and nothing again! Damn!
-
Implementing jQuery and javascript in Wp
Thank you very much @Kaiserk108! You're really kind to spend time to explain it to me, although it didn't help me. I did what you said but still nothing. Here's my code: <?php function custom_scripts() { if (!is_admin()) { wp_deregister_script( 'jQuery' ); wp_register_script( 'jQuery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' false, '1.10.2', false ); wp_register_script('customJS', get_template_directory_uri() . '/scripts/jquery-1.8.3.min.js', array('jQuery'), '1.8.3', false); // Custom scripts wp_register_script('myscript', get_template_directory_uri() . '/scripts/myscript', array('paral')); // Custom scripts wp_register_script('custom', get_template_directory_uri() . 'source/jquery.fancybox.pack.js', array('customJS')); // Custom scripts wp_register_script('fancy', get_template_directory_uri() . 'source/helpers/jquery.fancybox-thumbs.js', array('custom')); // Custom scripts wp_register_script('eas', get_template_directory_uri() . 'scripts/jquery.easing.1.3.js', array('customJS'), '1.3', false); // Custom scripts wp_register_script('button', get_template_directory_uri() . 'source/helpers/jquery.fancybox-buttons.js', array('fancy')); // Custom scripts wp_register_script('scroll', get_template_directory_uri() . 'scripts/jquery.scrollTo-1.4.2-min.js', array('customJS'), '1.4.2', false); // Custom scripts wp_register_script('mygallery', get_template_directory_uri() . 'scripts/gallery.js', array('fancy'), false); // Custom scripts wp_register_script('local', get_template_directory_uri() . 'scripts/jquery.localscroll-1.2.7-min.js', array('scroll'), '1.2.7', false); // Custom scripts wp_register_script('paral', get_template_directory_uri() . 'scripts/jquery.parallax-1.1.3.js', array('local'), '1.1.3',false); // Custom scripts wp_register_script('mouse', get_template_directory_uri() . 'scripts/jquery.mousewheel.js', array('customJS'), false); // Custom scripts wp_enqueue_script('customJS'); // Enqueue it! wp_enqueue_script('fancy'); // Enqueue it! wp_enqueue_script('scroll'); // Enqueue it! wp_enqueue_script('paral'); // Enqueue it! wp_enqueue_script('local'); // Enqueue it! } } // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'custom_scripts' ); ?> I don't know what I'm doing wrong?
-
New Portfolio Website
Thank you @danieljoseph! You want to say that the contact form is old style comparing to the other elements? Maybe you're right. I did work a lot on that web page, but you always learn and have to improve yourself! That's what I'm gonna do! What do you suggest?
-
Implementing jQuery and javascript in Wp
Thank you @KaiserK108! I did what you say and still doesn't work. Here is my function.php <?php function custom_scripts() { if (!is_admin()) { wp_deregister_script( 'jQuery' ); wp_register_script( 'jQuery', 'scripts/jquery-1.8.3.min.js', false, '1.8.3', false ); wp_enqueue_script( 'jQuery' ); wp_register_script('myscript', get_template_directory_uri() . '/scripts/myscript', array(), '1.0.0', true); // Custom scripts wp_enqueue_script('myscript'); // Enqueue it! } } // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'myscript' ); wp_register_script('custom', get_template_directory_uri() . 'source/jquery.fancybox.pack.js', array(), '1.0.0', true); // Custom scripts wp_enqueue_script('custom'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'custom' ); wp_register_script('fancy', get_template_directory_uri() . 'source/helpers/jquery.fancybox-thumbs.js', array(), '1.0.0', true); // Custom scripts wp_enqueue_script('fancy'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'fancy' ); wp_register_script('eas', get_template_directory_uri() . 'scripts/jquery.easing.1.3.js', array(), '1.3', true); // Custom scripts wp_enqueue_script('eas'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'button' ); wp_register_script('button', get_template_directory_uri() . 'source/helpers/jquery.fancybox-buttons.js', array(), '1.0.0', true); // Custom scripts wp_enqueue_script('button'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'button' ); wp_register_script('scroll', get_template_directory_uri() . 'scripts/jquery.scrollTo-1.4.2-min.js', array(), '1.4.2', true); // Custom scripts wp_enqueue_script('scroll'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'scroll' ); wp_register_script('local', get_template_directory_uri() . 'scripts/jquery.localscroll-1.2.7-min.js', array(), '1.2.7', true); // Custom scripts wp_enqueue_script('local'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'local' ); wp_register_script('paral', get_template_directory_uri() . 'scripts/jquery.parallax-1.1.3.js', array(), '1.1.3', true); // Custom scripts wp_enqueue_script('paral'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'paral' ); wp_register_script('mouse', get_template_directory_uri() . 'scripts/jquery.mousewheel.js.js', array(), '1.0.0', true); // Custom scripts wp_enqueue_script('mouse'); // Enqueue it! // Hook into the 'wp_enqueue_scripts' action add_action( 'wp_enqueue_scripts', 'mouse' ); ?> I don't know what I'm doing wrong?
-
Implementing jQuery and javascript in Wp
Thanks @Privileged! And what do I do with this <script type="text/javascript"> $(document).ready(function(){ $('#navi').localScroll(800); $('#usluge').parallax("50%", 0.1); $('.bg').parallax("50%", 0.4); $('#radovi').parallax("50%", 0.3); }) </script> <script type="text/javascript"> $(document).ready(function(){ $('#arrow').localScroll(800); $('#usluge').parallax("50%",0.3); }); </script> <script type="text/javascript"> $(document).ready(function() { $("a.gallery").fancybox({ 'openEffect' : 'elastic', 'closeEffect' : 'elastic', 'nextEffect' : 'elastic', 'prevEffect' : 'elastic', speedIn : 600, speedOut : 200, overlayShow : false }); }); </script> This is placed in my index.html head.
- Implementing jQuery and javascript in Wp
-
Implementing jQuery and javascript in Wp
I was googling for weeks, found alot of stuff but nothing that explains in an easy way how to implement custom javascript and jQuery in Wp.Anyway, I made my theme and installed it in Wp, everything works fine except the scripts, it seems as they are not loading. I don't know what to do? I tried so many things, and nothing... wp.enque, wp_register and all that. I put it all in my function.php. Please, help me!!! I'm going crazy!
-
New Portfolio Website
Hello world! I made a portfolio website and I like to get some feedback from you guys! I have to point out that I have no much experience, so please don't be rude Thank you! Here's the link: http://www.itm.com.hr/
- Testing contact form
- Testing contact form
- Testing contact form