Posts tagged as:

Themes


Fixing Image Alignment in WordPress 2.5 +

by John P.

If you are using WordPress with the built in image uploader, and the image align characteristics are not working for you, the fix is a simple modification to your theme’s Stylesheet.css file.

In the Admin control panel just navigate to Design | Theme Editor and over on the right side of the list of files select your Stylesheet to edit. It will usually say: Stylesheet (style.css)

Add the following lines anywhere you want within the stylesheet and then save the document and you should be good to go.

img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

If your Stylesheet is not editable, you may have to use your FTP client to go in and change the permissions on the files.


WordPress: Homepage Ads ONLY After The First Article

October 3, 2007
Thumbnail image for WordPress: Homepage Ads ONLY After The First Article

Have you ever wondered how to show Google ads on your WordPress blog’s home page, but only after the very first article? Well, here is how you do it. And don’t worry, it’s quite simple, and you can’t permanently damage anything by giving it a try. ANYONE can do this! In the PRESENTATION menu, under [...]

The Nice Person Freeware License

April 11, 2007
Thumbnail image for The Nice Person Freeware License

While creating a couple of plugins and themes for WordPress I became confused, disillusioned and disenchanted with the various copyright licenses found around the net. I didn’t want anything so “legal-y” because, well frankly I’m not going to have the time, energy or patience to actually enforce it. Plus, I’m giving these things away for [...]