wordpress and jquery conflicts – How to solve that

Jquery is most powerful javascript framework and which is used widely. WordPress is most powerful and famous cms in the world. When you are using the jquery in wordpress that time you need to keep in mind some issues. WordPress itself uses the jquery in there framework. But when we tries to add the different versions of jquery and there plugins, there was issue or conflict with jquery. Sometimes I saw issue with some plugins due to different versions of jquery. I shown in this tutorial, how to solve the wordpress and jquery conflicts easily.

wordpress and jquery conflicts – How to solve that

wordpress and jquery conflicts
wordpress and jquery conflicts

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:

<script type="text/javascript">// <![CDATA[
 $.noConflict();
 jQuery(document).ready(function($) {
 // Code that uses jQuery's $ can follow here.
 });
 // Code that uses other library's $ can follow here.
// ]]></script>

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.

[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]

<script type="text/javascript">// <![CDATA[
 $.noConflict();
 jQuery(document).ready(function($) {
 // Code that uses jQuery's $ can follow here.
 });
 // Code that uses other library's $ can follow here.
// ]]></script>

[/viral-lock]

If you still facing issue with jquery then please write to me on support@purabtech.in.

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
Fadein and Fadeout effect through javascript
minimize, restore, maximize and hide functionality with javascript without using jquery
Complete Javascript form Validation now easy ( Checkbox, Websites, Email, Maxlength)

wordpress plugins for statistics or stats

For wordpress website wordpress stats plugins are very important. For checking how much visitors are visited our site. You just need to install following any plugin in your wordpress. Here we have most famous and unique wordpress plugins for statistics or stats which are useful for adding the statistics to your website.

wordpress plugins for statistics or stats

wordpress plugins for statistics or stats
wordpress plugins for statistics or stats

WordPress.com Stats

http://wordpress.org/extend/plugins/stats/
There are hundreds of plugins and services which can provide statistics about your visitors. However I found that even though something like Google Analytics provides an incredible depth of information, it can be overwhelming and doesn’t really highlight what’s most interesting to me as a writer. That’s why Automattic created its own stats system, to focus on just the most popular metrics a blogger wants to track and provide them in a clear and concise interface.

Installing this stats plugin is much like installing Akismet, all you need is to put in your API Key and the rest is automatic.

WP-Stats-Dashboard

http://wordpress.org/extend/plugins/wp-stats-dashboard/
Display your blog’s stats graph plus your blog traffic, social engagement and social influence directly in your dashboard. See how you’re ranking on Alexa, check out your Technorati authority, monitor your ranking across multiple sites and much more. Once you install this plugin you’ll wonder how you ever managed to track your social media worth without it.

Feed Stats for WordPress

http://wordpress.org/extend/plugins/feed-stats-plugin/
Feed Stats for WordPress is a plugin that allows you to view your FeedBurner feed stats from inside of the WordPress admin interface.
Stats for your feed can be viewed from the “Feed Stats” page in the “Dashboard” section of WordPress.

iRedlof Google Analytics Stats

http://wordpress.org/extend/plugins/iredlof-google-analytics-stats/
iRedlof Google Analytics(GA) Stats is a wordpess admin panel plugin, I developed it cos i like to manage everything from one place. This plugin is like wordpress .com stats plugin but the difference between the two is that wordpress.com stats works with wordpress analytics stats system and iRedlof GA Stats works with google analytics stats system. Using this plugin, you get your GA stats straight from your account on google to your wordpress admin panel. Right now this plugin is in development phase and only have limited features i.e. visits/day, pageviews/day, etc to focus on just the most popular metrics a blogger wants to track and provide them in a clear and concise interface, but the full version will be loaded will all the features of google analytics which will provide you with an incredible depth of information. To use this plugin you need google analytics account.

Runescape User Stats

http://wordpress.org/extend/plugins/runescape-user-stats/
A very simple plugin to add runescape game stats on any page of the wordpress blog. This plugin allows blog owner to show th stats for any user on a page and post. This plugin also allows to display multiple runescape stats. you can visit the author website Rakesh Muraharishetty to view the authors game stats. Alternatively visit the plugin homepage Runescape Guide for updates and discuss the stats plugin for future enhancements.

WP-Stats

http://wordpress.org/extend/plugins/wp-stats/
Display your WordPress blog statistics. Ranging from general total statistics, some of my plugins statistics and top 10 statistics.

WordPress.com Stats Helper

http://wordpress.org/extend/plugins/wordpresscom-stats-helper/
This plugin helps you retrieve data from wordpress.com stats and put it on your blog.

Simple Stats Widget

http://wordpress.org/extend/plugins/simple-stats-widget/
This widget to record and display the last N visitor areas, from and time, and search engine access, installation and use is very simple.

Here is link for more useful wordpress plugins for various purposes.

wordpress-plugins/

wordpress-plugins-ecommerce-site

downloaded-free-wordpress-image-gallery-plugins

15-top-popular-wordpress-plugins

amazing-100-plugins-wordpress

ten-wordpress-plugins-for-improve-the-user-interactivity-and-experience

wordpress-plugins-bloggers

best-wordpress-plugins-for-creating-forums-in-wordpress

10-real-estate-wordpress-plugins

16-wordpress-plugins-wordpress-blog-install

how to submit theme to wordpress directory

Here in this article, we shown, how to submit theme to wordpress directory. If you are wordpress theme developer and want list your theme to theme directory.

When I started the wordpress theme development. That time I did R&D about submitting the wordpress theme to wordpress.org site.

how to submit theme to wordpress directory

 

how to submit theme to wordpress directory
how to submit theme to wordpress directory

You should use the following URL for submit the wordpress theme.

http://wordpress.org/extend/themes/upload/

First you need to register to wordpress.org site.

where to submit free wordpress themes

You need to more careful about following points.

Tags which are you going to use in the style.css that are should be good. following tags are not allowed by wordpress

seo
– adsense
– smo
– social bookmark
– custom footer
– google adsense ready
– infolinks
– buysell ads ready
– Jquery
– Jquery slider

You should follow the wordpress terms and conditions for submit your free wordpress theme to wordpress theme directiory.

If you need help for creating wordpress theme then Please check following article.

https://purabtech.in/how-to-create-wordpress-theme/

You can submit your wordpress theme to our site. Please send email to our team with theme screenshots and description. You need to send demo URL and download link for your wordpress theme. We will publish your wordpress theme on our showcase page.

You just need send email to our team on wordpressapi@gmail.com

You can check our wordpress theme showcase page:

Our Showcase for Free wordpress themes

If you still facing any issue then please write to me on support@purabtech.in.

where to submit free wordpress themes

When I started developing the wordpress theme I was worried about where to submit the wordpress theme. I already developed many wordpress plugins but that plugins I submitted to wordpress plugin site. If you are wp theme developer and you want to publish your theme on multiple sites them here is list of URLs where you can submit free wordpress themes.

submit free wordpress themes
submit free wordpress themes

After doing googling I found some site where I can submit my wordpress theme and then I can get more traffic for my wordpress themes.

You can submit your wordpress theme to our site. Please send email to our team with theme screenshots and description. You need to send demo URL and download link for your wordpress theme. We will publish your wordpress theme on our showcase page.

You just need send email to our team on wordpressapi@gmail.com

You can check our wordpress theme showcase page:

Our Showcase for Free wordpress themes

Here I created the list websites where you need to submit your wordpress theme:

[viral-lock message=”Lists are Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]

[/viral-lock]

Share buttons in wordpress without wordpress plugin

I don’t recommend you to use wordpress plugin for adding the share buttons. we have simple code for add Share buttons in wordpress without wordpress plugin

Share buttons in wordpress without wordpress plugin

There are many wordpress plugins available for adding share button in wordpress or any website. I don’t recommend you to use the wordpress plugin for adding the share buttons like, facebook, twitter, linkedin, stumbleupon, delicious and Google buzz. Because when you install wordpress plugin for social buttons then that plugin will use your database and on every page view that will fire query to your database and your page view will became little bit slower. If you are having less visitors then this ok but if your site is having large visitors than you need to think about small issues also. Floating share button are very popular these days. You can easily add the sharebox which floating bar. Using following code you can add the share buttons without wordpress plugin.

I written some code for this and on my site share buttons are looking as follows:

Share buttons in wordpress without wordpress plugin
Share buttons in wordpress without wordpress plugin

I created file called sharebox.php and in that file just written following code.

<div id="sharebox" style="">
<a href="http://twitter.com/share" data-count="vertical" data-via="digcms">
Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js">
</script>
</div>
<div>
<script>var fbShare = {url: <?php the_permalink() ?>,size: 'large',badge_text: 'fff',badge_color: '3b5998',google_analytics: 'true'}</script>
<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
</div><div>
<script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>
</div>
<div><a class='delicious-button'  href='http://delicious.com/save'> <!-- { url:"<?php the_permalink() ?>" ,title:"<?php the_title() ?>" } --> Save on Delicious</a></div><div style="display:none;">

<script type="text/javascript">(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a></a>

</div>

<div><a title="Post on Google Buzz" href="http://www.google.com/buzz/post" data-button-style="normal-count"></a>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>

</div><div><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
<script type="in/share" data-counter="top"></script></div></div>

After creating sharebox.php file, open your single.php file and put following code in that file.

<?php include 'sharebox.php'; ?>

After that open your style.css file and put following code in that file.

#sharebox{display: block;margin-left: -85px;
position: fixed;top:105px;width:65px;
border:#ccc 1px solid;padding:2px}

If you need more buttons then you should prefer following article. In this article you will find the all the share button code. and you dont need to add any wordpress plugin for adding share or like buttons in wordpress site.

Please write comment for our article: Share buttons in wordpress without wordpress plugin

Add the social Bookmark Icons in WordPress theme without plugins

Useful mysql queries for wordpress migration

For developers wordpress moving site to new server is daily job. wp migration is easy with mysql query. Here is useful mysql queries for wordpress migration. This mysql query are very useful for moving wordpress data to new server.

Note: before executing following queries, first take backup of wordpress database first. it is very important for safety and backup purpose. I recommend, always take database backup while doing any database operation. Taking database backup is good practice.

When you want to change your domain name for wordpress site. You need to first take backup of your file system and mysql database. Make sure that backup is completely taken. Verify with any wordpress developer. Then only you start the migration. For wordpress domain migration following mysql queries are required.

mysql queries for wordpress migration

I already written detail article for this. You should read following article.

https://purabtech.in/wordpress-migration-hosting-service-domain/

Here is list of mysql queries which are very important when you are doing the wordpress site migration.

UPDATE wp_options SET option_value = REPLACE(option_value, 'oldsite.com', 'newsite.com');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'oldsite.com', 'newsite.com');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'oldsite.com', 'newsite.com');
UPDATE wp_posts SET post_excerpt = REPLACE(post_excerpt, 'oldsite.com', 'newsite.com');
UPDATE wp_posts SET guid = REPLACE(guid, 'oldsite.com', 'newsite.com');
mysql queries for wordpress migration
mysql queries for wordpress migration

checklist for self hosted wordpress sites

When you creating site in wordpress, I created unique checklist for self hosted wordpress sites. checklist for self hosted wordpress sites is very important.

checklist for self hosted wordpress sites

When you creating the website in wordpress that time you need to be very careful and you need think and check about following things. I created the checklist for wordpress sites.

About Theme

Use the Minimum images

checklist for self hosted wordpress sites
checklist for self hosted wordpress sites

You should use the sprite image in wordpress theme. That will reduce the webpage loading time.

Use proper and optimized CSS properties

You should use the proper CSS. Dont repeat CSS code. like float, color, margin.

Test the Theme in IE7, IE8 ,Firefox, Safari and Google Chrome

Your theme need to be cross browser compatible.

Use only External CSS

Dont use the inline CSS in Theme.

Use Jquery

Jquery is very popular and simple and seo friendly for wordpress site.

Use the Sidebars in your theme

In sidebar you mostly put the links and ads. That is very important for SEO.

Put the Tag and category links

You should put the tags and category links in theme.

Make Mobile friendly

You theme should viewable in iPhone, iPad, Blackberry mobile devices.

Check in WordPress site

  • Check Robots.txt file
  • Put Site title
  • Get some good Tagline for the site
  • Create contact us email address
  • Put Share links ie. Twitter, Facebook, MySpace, RSS, LinkedIn etc.
  • Create Author’s profile: Email, Website, AIM, Biographical Info
  • Put the Google Analytics code in your site
  • Do web master varification
  • Use the SEO Meta Tags (Use the SEO Meta Tags plugin)
  • Submit your site to to Yahoo, Google, Bing
  • Use good wordpress plugins
  • Use the Permalinks (date and name. if do not want to show category in url then use ‘No Category Base’ plugin)
  • All Posts and Pages with genuine and useful articles
  • Create nice Categories and their structure (parent-child)
  • Remove broken urls (if urls not provided use ‘javascript:;’ in anchor’s href)
  • Use the Widgets and Menus with their urls
  • Put Akismet API key -For Spam protection.
  • Do setting for Media sizes (thumbnail, medium, large)
  • Uncheck the “Organize my uploads into month- and year-based folders” setting in media setting.
  • Use the SEO ultimate plugin.
  • Dont use the plugin for contact form

Here are some useful links which will be helpful to you

Best WordPress SEO Plugins for Optimize your WordPress Website

Japan tsunami news and photos on wordpress

Japan tsunami was shocking news to every body. That’s Why I am also writing about Japan tsunami. That effected to all the world. I can say this unforgettable event of this century.

The first tsunami from the Chile quake hit Japan’s outlying islands on Sunday, but the initial waves were small, though officials warned a bigger surge of water could reach the country’s main islands.
Japan was hit by one of the largest earthquakes ever recorded on March 11. The magnitude-9.0 quake spawned a deadly tsunami that slammed into the nation’s east coast, leaving a huge swath of devastation in its wake. Thousands of people are dead and many more are still missing or injured.

When Friday’s earthquake struck automatic messages were transmitted to television stations across the country.

The on-screen warning messages were followed by a studio announcement.

As the studio shook around him, a news presenter calmly advised viewers to “protect yourselves from falling objects” before reading out the names of areas most at risk.

Japan’s Meteorological Agency said the first tsunami to reach Japan after the magnitude 8.8 quake off Chile was recorded in the Ogasawara islands. It was just 4 inches high. There were no reports of damage.

The government said the tsunami and quake, which was felt as far away as Beijing 2,500 kilometres away, had caused “tremendous damage” while aerial footage showed massive flooding in northern towns.

Seismologists say the quake was 160 times more powerful than the one that devastated Christchurch last month.

Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos

Here is some very horrible photos of japan tsunami.

Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos
Japan tsunami news and photos

remove category word from wordpress url

For professional sites we want to remove category word from wordpress url. here we have short code which can be added in to .htaccess file. that will remove category form url slug.

remove category word from wordpress url

If you want to remove the /category/ word from your URL you need to use the following code.

If you are not wordpress developer and you are not having knowledge of apache server then dont use this code.

first take backup of your .htaccess file which you can find in your root folder of wordpress installation.

Put following code in that file.

RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]

After putting this code your URL will will be changed as follows:

http://yourblog.com/category/wordpressapi
to
http://yourblog.com/wordpressapi

Other Helpful link:

Remove category slug wordpress from URL

remove category word from wordpress
remove category word from wordpress

create links template page in wordpress theme

From 3rd version wordpress introduced links template. Links is same important like archive page. code snippet for create links template page in wordpress.

create links template page in wordpress

Links template page concept is new in wordpress theme. From wordpress 3 version wordpress introduced the links.php template file in wordpress themes. Adding the links page to your wordpress site or blog is very good for seo.Links page is same important like archive page.

create links template page in wordpress
create links template page in wordpress

You can add your friends and good websites in links page. You should use the links page very carefully because this page is very important for SEO. Google and other search engine is always look for links page where you can put other network or friends sites.

How to create links template page

Note: If you are wordpress developer then only use following code.

You need to create the links.php file in your wordpress theme folder. and put following code in that file.


<?php
/*
Template Name: Links
*/
?>
<?php get_header(); ?>

 <section id="primary">
 <div id="content" role="main">

<div id="archives">

<?php the_post(); ?>
 <h1><?php the_title(); ?></h1>
 <h2>Friends Network </h2>
 <ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>

</ul>

</div>
 </div><!-- #content -->
 </section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

After that go to your wordpress admin panel and create the links.php with links page template.

create links template page in wordpress
create links template page in wordpress

Publish links page and add the links page in to your menu.

Here are some links which are helpful to you.

create contact us template page in wordpress

If you link this article then please add my site in your links page or blogroll. If you are having any issues or question about links template then please write to me on support@purabtech.in.