Remove swfobject.js in wp_head()

if you have unwanted javascript on your page, it usually comes from plugins. deactivate them, and see if the javascript is still there. if it still is, try updating wordpress, or switching to another theme. if not, activate the plugins one by one, and check which one is putting this script to your head. after … Read more

How to add custon UI jquery & Fancybox script to WP

If you are not already loading the jQuery UI .js and .css files in your theme/plugin you can add them via the wp_enqueue_script function: http://codex.wordpress.org/Function_Reference/wp_enqueue_script No, add them via the enqueue scripts function. You need to wrap any inline scripts in a jQuery No Conflict wrapper. jQuery(document).ready(function($) { // do stuff // }); more on … Read more

Superfish Menu Not Loading

You might want to take a look at the wp_enqueue_script() documentation and modify your code to follow standard WordPress practice. Then look at your output and verify that your JS is being loaded.

Sorting WP Auctions by date/price?

<a href=”https://wordpress.stackexchange.com/questions/77197/<?php bloginfo(“template_url’); ?>/auction_price.php”>Order by price</a> auction-price.php is inside the template directory. Then you can’t include wp-blog-header.php using require(‘./wp-blog-header.php’) inside template directory. Therefore do_shortcode() is not working without WordPress. The proper way to use ajax in WordPress is via admin-ajax.php Read More at Codex: http://codex.wordpress.org/AJAX_in_Plugins For example, in your functions.php: function wpse_77197_auction_price(){ echo do_shortcode(‘[wpa_list_widget mode=”list” … Read more

Showing All the Posts in the Loop

I created a fiddle for anyone that is interested HERE. Here is the javascript I used also to give the smooth scroll for an article container. // clicking the links in the article link container $(‘#article-links a’).click(function() { var $this = $(this); // save this instance of the click for access inside the loop // … Read more

Title on hovering on the featured image

Alternative approach: <li class=”cycle-item slide-<?php echo $i; ?>”> <span class=”featured-title”><?php the_title(); ?></span> <a href=”https://wordpress.stackexchange.com/questions/97055/<?php the_permalink();?>”><?php the_post_thumbnail(‘featured’); ?></a> </li> then hide the span with CSS, show it on hover of the <li> element, position it over the image with CSS. Example: li.cycle-item { position: relative; } li.cycle-item .featured-title { display: none; } li.cycle-item:hover .featured-title { display: … Read more

Ajax Validation for reCaptcha

Just found out that reCaptcha actually rejects CAPTCHAs which are submitted to their server more than once. Since I was using the WP-reCAPTCHA plugin, the plugin resubmitted the CAPTCHA after my AJAX submission. So I just commented out a line from the plugin that does the submission, which is in file recaptcha.php, line 27: $this->register_filters();

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