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.

Blog Your Way To The Top

Blog Your Way To The Top

How Any Business Builder Can Turn A Simple Blog Into A Lead Generating, Organization Cash Cow For Any Home Based Business! Everyone knows that in order to succeed in your home based business or your MLM / Network Marketing business, you need to adopt the latest strategies when it comes to making massive money.

Get My Free Ebook


Post a comment