Is there some jQuery conflict here?

If I click on the large button on the bottom of your page (the one in your first screenshot), then your page is called with the parameter ?paged=2. If I call your page directly with this parameter, I got the following JS error TypeError: $ is not a function From the source of your page: … Read more

How to setup a popup registeration page in wordpress with function.php

You can add the HTML for the area via wp_footer, include the style with wp_enqueue_style(), and include the javascript to show/hide the popup with wp_enqueue_script(). wpse90382_popup_function() { add_action( ‘wp_footer’, ‘wpse90382_popup_html’ ); wp_enqueue_style( ‘your_style’, get_template_directory_uri() . ‘your_stylesheet.css’ ); wp_enqueue_script( ‘your_script’, get_template_directory_uri() . ‘your_javascript.js’ ); } wpse90382_popup_html() { ?> <div>Your HTML</div> <?php } if ( some condition … Read more

force jQuery to load in the head

Edit: new solution, based on one of the comments. If you are using wp_enqueue_script to load your js file, make sure jQuery is a dependency so that it gets called before your code: wp_enqueue_script( ‘my_script’, ‘my-script.js’, array( ‘jquery’), $ver, true ); You can then remove the original enqueue call you had since jQuery will be … Read more

Problem adding MP3 attachments to a jPlayer playlist

Have a look at wp_localize_script for passing php data to javascript. A pseudo-code example: $tracks = array(); foreach( $mp3_attachments as $mp3_attachment ): $tracks[] = array( ‘mp3’ => $mp3_attachment[‘filename’], ‘title’ => $mp3_attachment[‘title’] ); endforeach; $wpa_track_data = array( ‘tracks’ => $tracks ); wp_enqueue_script( ‘wpa_script’, get_template_directory_uri() . ‘/js/yourscript.js’ ); wp_localize_script( ‘wpa_script’, ‘wpa_data’, $wpa_track_data ); Then in your js … Read more

Fancybox just loading small white square

Use Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to see what’s loading on your site; there’s 404 for a JS file called main.js, probably from Fancybox. Your main jQuery libraries are loading OK.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)