WordPress Cheat Sheet

Basic Template Files

File NameDescription
style.cssstyle sheet file
index.phphome page file
header.phpheader content file
single.phpsingle post page file
archive.phparchive/category file
searchform.phpsearch form file
search.phpsearch content file
404.phperror page file
comments.phpcomments template file
footer.phpfooter content file
sidebar.phpsidebar content file
page.phpsingle page file
front-page.phplatest posts or static page
tag.phpdisplay tags in archive format
category.phpdisplay categories in archive format
Continue reading “WordPress Cheat Sheet”

HTML CSS Snippets

Adding page breaks to your web pages


This is the text for page #1.

<p style="page-break-before: always">

Page #2...


<p style="page-break-before: always">

Page #3...



Wrap text in a <pre> tag

  pre {
    overflow-x: auto;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
Hyper Useful, Ready To Use HTML Snippets