Category: How To

How To Make Text Wrap Around Adsense

date 31 Mar 2008 | category How To, Wordpress

advertisements

This simple code aligns the adsense ad to the left and text wrapping around it.

If you want the adsense ad to the right, just change the [float: left] to [float: right]

  1. <div style="float: left; margin: 3px 3px 3px 3px;">
  2.  
  3. adsense code goes here
  4.  
  5. </div>

How To Make WP Show Only One Post On The Front Page?

date 11 Feb 2008 | category How To, Wordpress

Follow the steps to make wordpress show only one post on the front page.

1) Make a copy of the index.php file thats in your worpress theme directory

2) Rename the index.php file to home.php

3) At the top of home.php, you need to make a call to query_posts

  1. REPLACE THIS CODE
  2. <?php get_header(); ?>
  3. WITH THIS CODE
  4. <?php
  5. get_header();
  6. query_posts('posts_per_page=1'); //returns only the front page
  7. ?>

The home.php file will take over the role of index.php and be used for front page display.

This way, you will not interfere with the number of posts shown on Categories and Archives if you had changed the number at the Reading Options.

You can easily change the number of posts per page by changing the (’posts_per_page=1?) to any number you want.

Making a Web 2.0 Logo with Reflective Effect

date 01 Feb 2008 | category How To, Photoshop Tutorials

I have always wanted to learn how to make a "Web 2.0 Logo with Relective Effect" because I think it looks very cool, but I on the other hand is lazy to go and find out how to do it.

While I was looking for information to do a nice naruto logo, I came across this photoshop tutorial, How to make a Web 2.0 Logo.

Since I am already on that page, I thought that might as well follow the tutorial and try to do one. The steps are easy to follow and I managed to make a simple logo below.

Cheers!

Web 2.0 Logo With Reflective Effect