Categories
WordPress

Add "Preview" Link to Manage Themes

Ever since WordPress added a Live Preview option to the Manage Themes screen, it’s been frustrating to test a plugin using multiple themes. Why Live Preview sucks for developers When using Live Preview, you can’t modify the URL of the page you’re visiting or open the preview in a new window or tab. Live Preview […]

Categories
Web Development WordPress

Simple Way to Get Plugin Status in WordPress

I have previously written on how to determine if a widget is active. This is helpful for widgets, but not for plugins. WordPress has a couple of different functions that help you determine plugin status. They are both located in wp-includes/plugin.php `validate_plugin()` spits out an error if the plugin file does not  exist or has […]

Categories
Plugins Web Development

Yourls Google Analytics Link Tagging

In my last post, I wrote about the benefits of using YOURLS, a self-hosted link-shortening service. I’m finding that YOURLS is great, but it’s not perfect. Some of the issues I have experience are part of what you get using most URL shortener services. Some of the downsides of using link shorteners are: Google Analytics doesn’t […]

Categories
Plugins WordPress

Show Content Only Plugin – A Perfect Keyword Research Companion

Download the Plugin from WordPress.org Another WordPress SEO Plugin by Katz Web Services The Show Content Only Plugin enables you to show only a post or page’s content, without sidebars, footers, and other content. There are many different reasons for wanting to show just the content, but there’s never been such an easy way to do […]

Categories
Code QuickTip WordPress

How to Prevent Loading WP-DownloadManager's CSS File

If you want to disable the WordPress plugin WP-DownloadManager‘s download-css.css file from being loaded, add the following code to your functions.php file: remove_action(‘wp_print_styles’, ‘downloads_stylesheets’); Alternatively, if you would just like to use your own stylesheet, you can add a file named download-css.css to your theme’s directory, and the plugin will automatically load your stylesheet instead.

Categories
WordPress

Strip Extra ImageScaler Attribute from Plugin-Generated Code

I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as: <img class=”” src=”http://www.example.com/imagescaler/generated-image.jpg” alt=”Example” width=”258″ height=”234″ imagescaler=”http://www.example.com/imagescaler/original-image.jpg” /> To strip imagescaler’s imagescaler attribute, add the following into your functions.php file: add_filter(‘the_content’, ‘strip_imagescaler’); function strip_imagescaler($content) { $content = preg_replace(‘/imagescaler=”(.*?)”.?/s’,”, […]

Categories
Code WordPress

Simple Taxonomies Formatting — Improve the Plugin's Code Output

I’ve been using Joost de Valk’s Simple Taxonomies plugin for a couple of projects, and I’ve been very disappointed by the formatting of the terms output code. When configuring the plugin, you have the option of choosing “Add terms to the end of posts” or “Add terms to the end of excerpts.” If you do, […]

Categories
Code jQuery

Simple Vertical Align Plugin for jQuery

Sometimes you may want to vertically align a block item, but the CSS-only vertical aligning methods don’t make you feel clean.  Personally, I hate having to style items as a table/table cell to get them to vertically align in Internet Explorer. jQuery to the rescue.  Using a jQuery vertical align snippet as my base code, I modified it […]

Categories
Web Design Portfolio WordPress

MomJobSeeker.com launched!

Mom Job Seeker prepares mothers re-entering the workplace after their kids have grown up a bit. April Stensgard, owner, contacted Katz Web Design with the goal of having a business blog that would facilitate online event registration. Faced with this task, I took WordPress, added the eShop plugin, and Event Calendar and Event Manager (now defunct) and […]

Categories
Code WordPress

How I fixed WP-DownloadManager 404 errors

I use LesterChan‘s Download Manager plugin, and it’s great. Good interface, simple purpose.  I recently found out that after upgrading a client’s site to WP 2.5, WP-DownloadManager was no longer working.  I followed the documentation on the plugin website, including resetting the permalink structure, but nothing worked. For some reason the re-write wasn’t working properly: all […]

Categories
WordPress

Admin Drop Down Menu plugin does not break WordPress 2.5 Image Uploader [updated]

The plugin has been updated. The multitudes may celebrate fewer clicks! As sad as it is to admit (since the plugin has saved me thousands of clicks), Admin Drop Down Menu by Ozh breaks the WordPress image uploader. If you’ve tried everything WordPress tells you to do in order to fix that Image Gallery feature […]