Wordpress Test 9 - 2.6

Wordpress Test 9 - 2.6

Just another WordPress weblog.

Wordpress Test 9 - 2.6 RSS Feed
 
 
 
 

Headings and other formattings

Let’s see if and how headings and other text formattings are styled in the posts of this theme. This is usefull for longer posts where you might want to use subheadings for various parts of your text. Note: You shouldn’t use <h1> tags within posts as those should be reserved for the blog title, post titles etc. and thus they aren’t showcased here as they would mess up most themes when used within posts. The h2 heading might have no top margin in this theme. You should leave h2’s to the post titles anyway but if you want to use them within posts, change the style.css accordingly.

Heading h2

Text again

Heading h3

Even more text

Heading h4

Now on to code, pre and address formatting:

Code, for snippets of code:

<?php echo "Hello World!"; ?>

Pre: To display text exactly as it is typed, with spaces included.

Some pre text and now 5 spaces     and 3 spaces   .

Finally, an address formatting:

Mrs. Jane Doe
123 Second Street
Smallville TX 12345-6789
USA

To use these formattings in your theme, switch to “HTML” (in WP 2.3 and older: “Code“) mode in your Wordpress editor, and surround the to-be-formatted text snippets with <h2> ... </h2> (or h3, h4, h5, h6), <code> ... </code>, <pre> ... </pre> or <address> ... </address>.

Leave a Reply