(Google plus one button without count) XHTML compliant

(Google plus one button without count) XHTML compliant

A. Please add this code in your <head> and </head> tags.

<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang:'en-US', parsetags:'explicit'}

B. Please add this code in your desired location like this:

<div id="plusone"></div>
<script type="text/javascript">
   gapi.plusone.render('plusone',{"size": "standard", "count": "false"});

How to find absolute path of a directory/folder in PHP?

Absolute path can be finding in the following ways:

$mypath = getcwd();
echo "My Absoluthe Path is: ";
echo $mypath;


$dirname = dirname(__FILE__);
echo “Full path to this dirname: ” . $dirname . “”;
echo “Full path to a .htpasswd file in this dirname: ” . $dirname . “/.htpasswd” . “”;

How to increase memory limit through WordPress wp-config.php file

Please find the wp-config.php in your WordPress root directory, then please add or customize the following line:

define(‘WP_MEMORY_LIMIT’, ’64M’); //change the 64M to 90M or according to your demand.

Notice: WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.

Rounded corners border-radius for IE for WordPress:

Download the PIE.htc file and Place it somewhere on your site, and then use this following CSS code:

//In header.php

# example
behavior: url(/PIE.htc);/* on your absolute path, where you have placed the PIE.htc file. */

//In your style sheet

border-radius:15px; ; /* CSS3 */
-moz-border-radius:15px; /* Firefox */
-webkit-border-radius:15px; /* Safari, Chrome */