Resize Image in Blog Posts To Fit Column Width Using CSS

Have you ever added an image to your blog post to find that the width of the image exceeds the width of the column of the page? Here’s a simple fix you can add to your theme’s style sheet to solve this problem. The fix below assumes that you have a class for your blog post entries called “.entry”. This class may be called something different depending on the preference of the theme developer.

.entry img {
max-width: 500px;
height: auto;
}

The max-width: is the maximum width the image can be within the .entry class. In this example the maximum width for an image is 500 pixels. We set the height: auto so the height of the image is auto adjusted to maintain the aspect ratio. Images that are smaller than the max-width will not be resized.

Note that this will not work for Internet Explorer 6 or older.

Plugins 009 – Share This Plugin

Today we’re covering the ShareThis WordPress plugin. The ShareThis plugin adds the famous ShareThis widget to your blog posts and pages. The ShareThis widget makes it easy for your viewers to link your posts and pages on their preferred social bookmarking sites such as Digg, Facebook, Delicious and MySpace and also provides an share via email option.

ShareThis WordPress pluginFeatures Include:

  • Simple ShareThis link with icon
  • Extensive list of social bookmarking and sharing sites
  • Share via Email option
  • Options to add to pages and posts
  • Code snippet to add to your theme
  • Widget you can add to other parts of your web site

The plugin gives you the ability to customize the placement of the ShareThis widget in your theme. All you have to do is add the following line where you want the ShareThis link to appear.

<?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>

To learn more about the ShareThis plugin, please visit the ShareThis WordPress plugin page, http://wordpress.org/extend/plugins/share-this/. To learn more about ShareThis, please visit the official ShareThis web site, www.sharethis.com.

Classic Image Button plugin Now Available

The Plugins Podcast is pleased to announce the immediate availability of the new Classic Image Button WordPress plugin.

The Classic Image Button plugin adds the classic image button option to the WYSIWYG editor in WordPress. The plugin adds the image button to the top row of the text formatting options. The plugin can work in tandem with the built-in WordPress image functions. This plugin also includes an option to disable inline styles in case you want your image styling to be compatible with the widest range of feed readers.

Classic Image Button

Disabling inline styles reverts the image properties vspace, hspace, border and align as image attributes instead of inline styling (e.g. border=”2″ instead of style=”border: 2px;”).

The Classic Image Button is added to both the main post and page visual editors as well as the smaller Press This editor.

The plugin may be downloaded from the WordPress Plugins Directory or by the following link: Download version 1.0.

Plugins 004 – CFormsII Custom Forms

Today we’re covering the CFormsII plugin to add contact forms, applications and other custom forms to WordPress.

Key features include:

  • Complete gamut of field types (radio, checkbox, dropdown, listbox, password, date, etc…)
  • Auto confirmation Email message
  • Email admin(s) of form submission
  • Use forms for blog comments
  • Integrates with the WYSIWYG (what you see is what you get) content editor
  • Multi-page forms
  • Ability to attach files
  • Captcha image to prevent SPAM form submissions
  • Data saved in database exportable (XML, CSV, TAB)
  • Specify start and/or end dates when forms are available
  • Works with WordPress 2.7 (latest version as of this writing)

The plugin is developed by Delicious Days. To learn more about CFormsII plugin as well as other plugins developed by Delicious Days, please visit www.deliciousdays.com.

Plugins 002 – 7 Minutes on Blubrry Powerpress Podcasting Plugin

This is a shortened version of episode 1 covering the Blubrry Powerpress podcasting plugin. We will try to keep all episodes under 15 minutes for now on, sorry all. 🙂

Blubrry Powerpress is a lightweight WordPress plugin that adds only the essential features to your WordPress blog to turn it into a podcasting system. Below are some key features.

  • Easily add podcast episodes to blog posts and pages
  • Integrated audio/video media player
  • iTunes RSS tags and album over art
  • Podcast only RSS feed
  • iTunes Ping
  • Media size detection and duration in seconds detection for mp3s
  • 3rd party statistics integration

In addition to the core fetureas above, the plugin has the ability to easily import Podpress episodes and settings so users can easily migrate switch plugins.