October 8, 2009
Are you installing wordpress or testing theme or pluging for wordpress on your live domain? Wait… Dont’ try it on your live system, let’s look at some reason why you may want to install WordPress on your local computer.
Reason #1: There is no need to register domain name and buy web hosting to host your website.
Reason #2: If you already registered domain name and host your website its fine but you may still want to install WordPress on your local computer because it will help you to test out WordPress Plugin that you may require on your live domain or test out new WordPress Theme. You may also tweaks WordPress as it installed on your local computer it means run faster.
Reason #3: Are you running Windows XP on your local computer and you have linux based webhosting just install WampServer. WampServer gives you linux environment on Windows. After installing WampServer you’ll have Apache, MySQL and PHP on Windows environment. And remember WamServer is FREE! Download WamServer.
Posted in General, WordPress Themes
2 Comments »
Tags: blogging, wordpress
September 1, 2009
If you are not satisfied with the relevancy of your Google Adsense Ads and its CTR, try section targeting. By inserting a start google_ad_section_start and end google_ad_section_end html comment to mark the relevant content sections of your page.
Look into single.php
Most themes will usually consist of single.php. single.php is the file that shows your full content. Look inside, and search for
<?php the_content(); ?>
Add the section targeting codes before and after this line, making it something like this:
<!-- google_ad_section_start -->
<?php the_content(); ?>
<!-- google_ad_section_end -->
Best of Luck
Posted in Google
No Comments »
Tags: blogging, Google AdSense
September 1, 2009
Trim is a useful String function available in languages like Visual Basic, Java & PHP which removes all leading and traling whitespaces from a String. Unfortunately Javascript does not provide Trim functionality to the String object. But there is solution using Regular Expression. Use following code in top of your Javascript file. Following code will add trim() functionality to String objects.
String.prototype.Trim = function()
{
text = this.replace(/^\s+/, '');
return text.replace(/\s+$/, '');
};
First line in code will remove leading spaces from the String and second line code will remove trailing spaces from the String.
Happy Coding
Posted in Programming
No Comments »
Tags: Javascript, Regular Expression
Recent Comments