easily add google adsense through text widget wordpress
Through text widget panel you can add the google ads to your wordpress sites. In this article, How easily add google adsense through text widget wordpress
Many people written the jquery wrapper around the jquery. They written in different style but when some jquery developers written or used same function name or same methods then jquery conflicts is happening.
WordPress itself uses the jquery for custom purpose. So you dont need to add the jquery script again in to wordpress. you just need to put following code in your wordpress theme for adding the jquery in your theme.
<!--?php wp_enqueue_script("jquery"); ?-->
Just put above lines in your header.php file for adding the jquery into your wordpress theme.
For removing the conflicts when you are using the jquery functions. just use following noconflict code in that.
$.noConflict(); // Code that uses other library's $ can follow here.
This technique is especially effective in conjunction with the .ready() method’s ability to alias the jQuery object, as within callback passed to .ready() we can use $ if we wish without fear of conflicts later:
Following is the some example for remove the conflicts from jquery with wordpress.
Just use the jquery multiple times for each jqeury plugins. That is the easiest way to solve the jquery conflicts.
But if you are having some knowledge of jquery then use the following code for remove the conflict.
var j = jQuery.noConflict(); // Do something with jQuery j("div p").hide(); // Do something with another library's $() $("content").style.display = 'none';
For many purpose we use the jquery in wordpress. Mainly jquery is used for sliders and menu and gallery.
For menu or slideshow use jquery in following fashion.
If you still facing issue with jquery then please write to me on firstname.lastname@example.org.
Here are some useful resources and links about Jquery and wordpress.
100+ jquery and CSS techniques and Tips and tutorials
jquery tips for wordpress theme developers