Information is Wealth...: wordpress
Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Add adsense ads below post title wordpress

You can add adsense below post title wordpress by adding  adsense code in content-single.php. If you are trying to add adsense below post body or above footer refer

To add adsense code below post title wordpress, Go to Appearance --> Editor --> content-single.php, click on the content-single.php file on the right in the editor screen, to select or modify content-single.php

Your adsense code need to be added below the
tag in content-single.php. Look  for below div tag after
tag, now place your adsense code below the div tag to display adsense below post title in wordpress
</header><!-- .entry-header -->
<div class="entry content" >
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxx";
google_ad_slot = "xxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

ADD YOUR ADSENSE CODE as above to display your ads below post title. Replace google_ad_client and google_ad_slot with your adsense ad details and save the content-single.php

Please note that I have added adsense below post title in my wordpress blog which has  F2 theme for wordpress. The .php file that you need to modify to display adsense ads below post title may be named different  if you are using a different theme.

If you are not able to find content-single.php in your theme look for .php file which contains article id as below and place your adsense code after
tag in it.

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h1><?php the_title(); ?></h1>

<div>
<?php f2_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->

if you have the content-single.php in your theme or wordpress directory, modify it as given below. Once you add adsense script and save the .php file, Google adsense ads will be now dsiplayed after title blogger in your wordpress blog

Error establishing a database connection wordpress mysql

Error establishing a database connection wordpress mysql

You normally get this error once you change the password in your GoDaddy hosting account for your blog.

To resolve this database connection error in wordpress you need to modify the password in wp-config.php, you can modify the password in wp-config.php using filemanager in Godaddy or using Filezilla client

Look for below text in wp-config.php and replace the password with your new password of wordpress blog

/** MySQL database password */
define('DB_PASSWORD', 'password');

Hope this helps in resolving Error establishing a database connection wordpress mysql

Add adsense before footer or after post body wordpress

You can add adsense before footer or after post body wordpress by adding adsense code in content-single.php. If you want to add adsense below post title refer

your wordpress may be hosted on

To add adsense code above footer or below post body , Go to Appearance –> Editor –> content-single.php, click on the content-single.php file on the right in the editor screen, to select or modify content-single.php

Your adsense code need to be added before the <footer> the tag in content-single.php. now place your adsense code below the closing div tag or above footer tag to display adsense after post body or adsense ad just before footer


Replace google_ad_client and google_ad_slot with your adsense ad details and save the content-single.php. Please note that I have added adsense below post body in my wordpress blog which has F2 theme for wordpress. The .php file that you need to modify to display adsense ads before footer may be named different if you are using a different wordpres theme.

if you have the content-single.php in your theme or wordpress directory, modify it as given below. Once you add adsense script and save the .php file, Google adsense ads will now be dsiplayed above every post footer in your wordpress blog.

ADD YOUR ADSENSE CODE as below to display your ads below post body.

connect to Godaddy web hosting using Filezilla

Do you log into Godaddy web hosting File manager  every time you need to modify files in ftp?

No, you need not log into your Godaddy web hosting File manager  to access ftp of your web hosting domain. You can just access your ftp files using Filezilla, one of most popular ftp tools used worldwide.

To Access Godaddy web hosting File manager  using Filezilla (FTP), you need to create a ftp user for your hosting domain

1) To create a ftp user, login into godaddy --> ftp users --> create ftp user

2) You can now access Godaddy web hosting File manager  using filezilla, just provide these details and say connect
  1. Server ip or hosting account domain( say abc.org)

  2. ftpusername created

  3. password
You can get the ip details of godaddy webhosting server if needed on the right bottom of the screen, once you click the launch button beside Web hosting domain.



Add Facebook Like Box Wordpress javascript

To Add Facebook Like Box to Wordpress without plugin or appid/secret you just need to modify the header.php and add javascript code to it.

Its easy you can just add facebook like box to your wordpress in two steps

1) Go to header.php located in yoursitewp-contentthemesyour themeheader.php( Here yoursite is your wordpress name and your theme is theme of your wordpress, carefully navigate to your folder.
Add this script below the body tag in header.php

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

2)Add below html in TEXT widget and place it wherever you want to display the facebook like box

<div  href="http://www.facebook.com/allinfoatoneplace" data-width="250" data-height="189" data-show-faces="true" data-border-color="#f4f4f4" data-stream="false" data-header="false"></div>

Make sure that you remove allinfoatoneplace from above  javascript script with your wordpress, Let me know if this doesn't help in adding Facebook Like Box to your Wordpress.
http://seekajob.blogspot.in

Redirect all blogger posts to wordpress

Move blogger to wordpress redirecting all old posts to new wordpress posts

 update 07262013:

If your old blogger posts are still not redirecting to new urls even after move blogger to wordpress (following below article) then here is a simple way to redirect all your old blogger url to new wordpress blog url. Install this plugin in your wordpress blog and copy the html provided in this new plugin and paste it in blogger.

if your old blogger urls are redirecting to home page of new wordpress blog also use below plugin.
http://techxt.com/blogger-301-redirect-plugin-for-wordpress/

You need to copy the html from blogger 301 redirect --> settings and paste it into your blogger template.

Once you do this, your old blogger posts  will be redirecting to your wordpress posts. let me know if it doesn't work !!!
___________________________________________________

 Here is a nice post on how to move blogger to wordpress without loosing google rankings How to Switch from Blogger to WordPress without Losing Google Rankings

If you are Getting 404 Not Found Error or all posts in blogger are now referring to single post in wordpress after moving from blogger to wordpress even after following all the instructions given in above post


You might be wondering what went wrong, the only solution for your issue of Getting 404 Not Found Error or all posts in blogger are now referring to a single post in wordpress is because of  the blogger/ added after your new domain name in your old blogger.

Be careful while adding the /blogger/ after your new wordpress domain, It is not needed to add your new domain.com everywhere in the html template.

 Make sure that /blogger should be added after your domain name only in <itempage> tag.