Saturday, 21 January 2012

How to insert Google Adds in wordpress site?


1) Log in to google adsence using google account (gmail account).

2) Go to adsense account.

3) Select "My Ads" and then "New ad unit".

4) Type the name of new google ad channel.

5) Select type of ads size.

6) Choose add type.

7) Then select colour of ad to match your wordpress site.

8) After that select "Save and get code".

9) Copy the code.

10) Next is to place your google adsence code at proper place. To do this login to your wordpress site.

11) If you want to display google ads on post then :
     - go to new post .
     - select HTML .
     - paste google adsense code .
     - then click "Update".

12) If you want to place google adsence code on sidebar in your wordpress site, then:
     - Select "Appearence"(Present on left hand side in Dashboard.
     - Click on "widget".
     - Click on "Text:Html" , hold it and drop it to your sidebar.
     - Paste your google Adsence code here, and then click "OK".



Thursday, 29 December 2011

how to add histats counter to your wordpress website


It feels more excitement for new website owners, but the real excitement comes when you see more traffic to your site in your wordpress site. Hitstats give the realtime stats data about your visitors and looks more better than Google Analytics. To  start tracking your visitors   

1. Go to histats.com

2. Create an account by clicking on "Register" option.

3. Fill up the form and then click register.

4. After you created your account go to "Counter Code" option bellow the add.

5. Choose the counter you want.


6. Then get the code by clicking on the number displayed.

7. Copy the code .

8. Login to your wordpress website.

9. Select to Appearence, and then go to editor.

10. Go to "Footer" option.

11. Scroll down and find end of the bunch of codes.

12. Paste the code before "</body>".

13. Click on "Update Now" button, and your work is complete. 

How to ramove wordpress fatal Error ?


IF you have created a new website with wordpress, things are going rignt but one day ...you open your website and see following lines in your website:
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/xyz/public_html/abc/tuv/wp-includes/kses.php(1005) : runtime-created function on line 1"


Don't worry, it's very easy to resolve this problem, to solve your problem first login to your cpannel, or Hostgater account, or whatever web hosting control panel.
1. Try adding this line to your wp-config.php file:
define('WP_MEMORY_LIMIT', '64M');

2. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

3. If you don't have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M

4. Talk to your host.