Tips – For Coders

Test Websites

Restarting the servers

Open Terminal (Applications/Utilities/Terminal)
$ cd /Applications/wordpress-(your_version)
$ ./ctlscript.sh start

$ cd /Applications/wordpress-3.3.1-1
$ ./ctlscript.sh start

Three columns using Div Tags

<div style=”float: left; width: 280px; height: 450px; margin: 0px; padding: 2px; border: 1px solid white;”>
FIRST COLUMN
</div>

<div style=”float: left; width: 280px; height: 450px; margin: 0px 0px 0px 5px; padding: 2px; border: 1px solid white; text-align: center;”>
SECOND COLUMN
</div>

<div style=”float: left; width: 280px; height: 450px; margin: 0px 0px 0px 5px; padding: 0px; border: 1px solid white; text-align: center;”>
THIRD COLUMN
</div>

<div style=”clear:both;”></div>

 

Make Changes With Child Theme

  • Header Height
  • Body Font
  • Additional Font
  • Space above and below Header
  • Space below Page Title

/*
———— GARY CHANGED Page Title to Green ——————-
*/
#site-title a {
color: #00ff00;
}

/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
———— GARY CHANGED FROM 640 to 920 ——————-
*/
.one-column #content {
margin: 0 auto;
width: 920px;
}

/* =Fonts
—-GARY CHANGED THE DEFAULT FONT TO ARIAL From GEORGIA after pingback a url———————————————————- */
body,
input,
textarea,
.page-title span,
.pingback a.url {
font-family: Arial, “Bitstream Charter”, serif;
}

/* =Content GARY CHANGED FONT SIZE to 15 and LINE HEIGHT to 21 from 18 and 24
————————————————————– */
#content,
#content input,
#content textarea {
color: #333;
font-size: 15px;
line-height: 21px;

PlugIns

Advanced Iframes with security key to add Pages from other sites
Google XML sitemap
Jetpack for stats
Role Scoper
Ultimate Tiny MCE to see HTML
WP table reloaded

<span style=”visibility: hidden;”>
PU
</span>

Problems with Google Doc Embedder

It appears Firefox cannot always display a pdf file with Mac OS

Frequently used html

<div style=”clear:both;”></div>
<div align=”center”>  This is some text!</div>
<a target=”_blank”></a>