WordPress Icon

New Privacy Policy

Posted On: March 15th, 2008 Filed Under: Blogging, Local Stuff

In order to comply with the new Google AdSense Terms I've gone ahead and added a Privacy Policy to Bill2me.com.

It should come as no surprise that this I have no intention of doing anything malicious to my visitors but I think that Google's new requirement that each of it's AdSense serving sites should include a Privacy Policy is appropriate.

You find where mp3 music download for mp3 player, Do you want download mp3 music from online mp3 archive

If you're interested in reading the new AdSense friendly Privacy Policy you'll see it linked in the footer as well as in this post.

WordPress Theme Design

Posted On: May 13th, 2007 Filed Under: Blogging

Last week I started a series of posts concerning WordPress theme design and building a custom theme.  After walking through my method of creating a basic blank theme I took a quick break and wanted to check in before starting up the next leg.

Has the first leg of the series been helpful at all?

WordPress Theme Design - Body and Sidebar

Posted On: May 9th, 2007 Filed Under: Web Design, WordPress

Leading up to now we've managed to build template files for our header, footer and stylesheet. All that's left, right now, is to build template files for our index.php and sidebar.php files. For the time being we're going to keep these files as simple as possible - just like our header, footer and stylesheet.

After this post is complete we're one post away from our super basic WordPress template. Let's get started.

The Sidebar.php File

For now we're only interested in setting up the basic sidebar so we'll skip over adding any content to it. All the file really needs to contain is some basic text just to signify the sidebar itself. Later on we'll talk about floating the sidebar and getting it exactly where we want it - that's still a short while away though.

For now you simply want to include some basic text in your file - just "This is the Sidebar" will do.

The Loop and Index.php

The WordPress Loop is the code that really controls any listing of your posts. Whether it's a category page, post, or Page you'll be using the loop to call your posts. Most of the hard work is all behind the scenes - you just need to familiarize yourself with the basics. For now we're interested in running a very basic version of the loop so we'll keep it simple. When we start talking about customizing a post we'll get into more detail.

The Loop in Action

Below you'll see a basic version of the WordPress Loop. We're not going to do anything fancy with it right now - just set it up to display posts. The code below will display each post's title as well as the post's content. Simply add the following text to your index.php file and your loop will be ready.

<?php if (have_posts() : while (the_post()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php endwhile; else : endif; ?>

The code above is a relatively simplified Loop. When executed it will simply display all post titles and the post content. It won't look spectacular but it will do the job.

Calling the other Templates

At this point our basic starting theme is almost done. In order to bring everything together we need to include a few more lines of code. WordPress offers some simple tags for calling our header, footer and sidebar which we need to add to our index.php in order to get things running.

Thankfully the tags we need are really easy to remember - it's just a case of putting them in the right place. In an un-styled page we want our content to behave a certain way. The basic page structure requires that our header and footer always start and finish the page so we know right off the bat that they'll lead and close our index.php file.

Besides our header and footer we also need to add the sidebar. Bare in mind that your content should always precede your sidebar text. Recognizing this your sidebar should always be called after your content but before your footer - here's how it'll look:

<?php get_header(); ?>
  Loop Goes Here
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Once you've done this boot up your version of WordPress sandbox and you're ready to go. Tomorrow we'll begin dissecting playing around with the theme's color and typography.

Displaying AdSense on un-published Pages

Posted On: May 8th, 2007 Filed Under: Blogging

I've added several lines of code to this site to guarantee that AdSense ads aren't displayed when I'm working on it. This insures that I don't accidentally click on ads and don't generate any invalid clicks - if there is no ad to display there's no way for things to go wrong.

Up until today I thought that AdSense may have even had a policy against displaying ads on unpublished pages. This may not be as big a concern as I had previously expected though. In a post today on the Inside Adsense blog they share the following:

Before our system can display targeted ads on your pages, our crawler first needs to access your pages. While you're building your pages within your HTML editor, your page hasn't yet been crawled, so you may sometimes see less-targeted ads or even ads in foreign languages.

While I would still actively aim at stopping ads from appearing in preview and editor situations it's interesting to know that AdSense is aware that it happens. I expect they have a method of identifying these types of situations and don't count those impressions towards the AdWord accounts that pay for the ads - chances are those impressions also don't count towards the publishers stats.

WordPress Theme Design - style.css

Posted On: May 8th, 2007 Filed Under: Web Design, WordPress

In this post we're just going to discuss some of the basics for putting together a WordPress stylesheet. When we get into the specifics of the theme pictured at the start of this series we'll talk about some of the CSS needed, for now we're just looking at some basics for creating a stylesheet that can be used when starting any new theme.

WordPress has a very basic set of rules for defining a theme's stylesheet. If you're interested in starting to design your own themes it might help to create a few template files that can be used anytime you want to start fresh. In the last post I listed a few files that you could create for getting started - in this post we'll start filling out the style.css file to get it ready for later customization.

The Required Header

CSS doesn't specifically require any type of header when you're putting together a stylesheet - WordPress, however, does. Besides simply allowing you to use your theme, the header is great for setting up an organization structure for your stylesheet. The basic WordPress header looks like this:
/*
Theme Name:
Theme URI:
Description:
Version:
Author:
Author URI:
*/

It's all pretty straightforward and simply adding the text above to your style.css file is enough to get WordPress to accept your theme.


You are viewing a mobilized version of this site...
View original page here

How do you rate mobile version of this page?

Mobilized by Mowser Mowser