Styling with CSS The Basics

A Cascading Style Sheet (CSS) is a style sheet that controls the appearance of content on a Web site. Every single WordPress theme you use in your blog uses CSS. The CSS provides style and design flair to the template tags in your templates. (See Chapter 12 for information about WordPress template tags.)

The CSS for your WordPress theme is pulled in through the Header template

(header.php) and is named style.css.

In your Dashboard, click the Editor link on the Appearances menu, and look at the Header template for the Twenty Ten WordPress theme by clicking the Header link on the Edit Themes page. You find the following line of code, which pulls the CSS (style.css) into the page to provide the formatting of the elements of your blog:

JtttNG/

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

Don't tweak the line of code that pulls in the style.css file; otherwise, the CSS won't work for your blog.

Chapter 12 covers the commonly used parameters for the bloginfo(); template tag used in WordPress themes.

Blogging From The Beginning

Blogging From The Beginning

The Blogging From The Beginning course was specifically designed with these people in mind. It starts at the very beginning, by helping them choose the right platform and takes them all the way though creating content, getting traffic and making money from their blog. It is simple, straight forward information that will help them even if they've never heard of blogging before. It will teach them how to get started and quickly harness the power of blogging for themselves.

Get My Free Ebook


Post a comment