Get URL for Searches in Safari 6

GetURLIcon

There have been many articles and conversations about the question of how to get the URL of a Google search in Safari 6. Some solutions include using the Terminal to get the URL, using AppleScript,  using bookmarklets, and using Automator. I created a Safari Extension to make this process easier. Get URL: Easily get the URL […]

Add Googlebot User Agent to Safari Develop Menu

Googlebot Safari

If you’re like me, you’ve wanted to have the Googlebot user agent availalbe in the Develop menu of Safari. Go to /Applications/ Right-click on Safari.app and select Show Package Contents Navigate to Contents/Resources/ Find `UserAgents.plist` Open `UserAgents.plist` in your favorite text editor Either Replace with the contents of this file and continue to step 9: [download id="12"] […]

Generate a Link to Activate a Plugin in WordPress

Here’s another specialized plugin development tip! If you want to create a link to activate a plugin, you need to know the path of the plugin file. Let’s use Akismet for this example. $path = ‘akismet/akismet.php’; $link = wp_nonce_url(admin_url(‘plugins.php?action=activate&plugin=’.$path), ‘activate-plugin_’.$path); The `$link` URL will be something like http://yoursite.com/wp-admin/plugins.php?action=activate&plugin=akismet%2Fakismet.php&_wpnonce=f97dabdf9

How to Hard-Code a UA String for the Google Analytics for WordPress Plugin

If you want to define a Google Analytics “UA String” while using Yoast Google Analytics plugin for WordPress. Add the following to your theme’s `functions.php` file: add_filter( ‘option_Yoast_Google_Analytics’, ‘custom_ua_string_filter’); function custom_ua_string_filter($options = array()) { $options['uastring'] = ‘UA-########-#’; $options['manual_uastring'] = true; return $options; } For users of WordPress Multisite, this will allow you to pre-configure new blogs […]

Simple Way to Get Plugin Status in WordPress

Active plugin volcano.

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 […]

Yourls Google Analytics Link Tagging

YOURLS Google Analytics Settings Page

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 […]

YOURLS URL Shortener

adf40414bc5b951f42470bb9b89cc18e

I was having trouble finding the right URL shortening service. My requests for shortening were not too picky. I wanted two simple features: Good statistics that are visible only to administrators Edit the long URLs after generating shortened links …but not one service has both features: http://sn.im has editable URLs, a bookmarklet, but no stats. Oh, and […]

WordPress.org Changes Plugin Page Layout

Wordpress.org plugin page from 2008

WordPress.org plugin page layout change likely for usability A couple of weeks ago, WordPress.org changed the layout of their plugins directory plugin pages. The update was likely to improve usability for users trying to determine whether a plugin is trustworthy and what it does. I believe the re-arranging of the page has achieved those goals. […]

How to Add www. – or Remove www. – From Your URL

Add or remove WWW!

This has been done many times by others, but just a quick tip on how to add or remove www. from your website’s address. This is helpful for URL canonicalization and user experience consistency. You can also achieve SEO-friendly canonicalization using rel=”canonical”. Oh boy, I’m getting too technical Here’s the juicy part: Add the following […]

Save Coding Time by Creating Special-Case Categories in WordPress

Sorting Fruit as WordPress Categories

When you would use excluded categories: When using WordPress as more of a content management system (CMS) than a blogging platform, there are many things that you need control over. One of them is special-case categories. Frequently asked questions Testimonials Case studies Press releases When you have a category of posts that you don’t want […]

Redirect a Website in ColdFusion – Add www. or Move to New Domain

cf_appicon

Redirecting a website in ColdFusion (.CFM) I have been working on a ColdFusion website, and I wanted to find a way to require ‘www.’ in the URL (to consolidate all pages on www. for SEO). I normally work with PHP and Apache servers, so I’m used to .htaccess. I knew there had to be a […]

How to Tell if Your WordPress Widget is Active

00b3a79760f387afbe4386f5316a838b

Ever wonder if your widget is activated on an external site? Here’s how to find out. When you register a sidebar widget, you use code like this: register_sidebar_widget(array(‘Name of Widget’, ‘class-of-widget’), ‘widget_function’); If you want to check whether the widget is activated (you may want to for a variety of reasons), you can do it […]

Career-Magic.com Launched

career-magic

An updated website for a Denver career coach CAREERMagic came to Katz Web Design to give their website some fresh blood. When Career-Magic.com was last updated, I was in high school.  Yes, it’s true — and I said it. The website not only needed updating visually, but there were a lot of parts of the […]

Recover your password from Interspire Shopping Cart

4b9c5195a17bcaacd821b84f9782a99f1

I develop my websites locally, so sending Lost Password emails never works. When I forget what my password is, it’s quite the hassle. I’m developing an Interspire Shopping Cart website, and lo and behold, I lost the password. Here’s how to recover your password from Interspire Shopping Cart:

Standards-Compliant Shopping Cart with XHTML & CSS!

I’ve been looking for a shopping cart like this for a long time One of my clients is looking to move from osCommerce to a more user-friendly solution, and I really want to use a shopping cart that is XHTML and standards-compliant…Something that validates and looks pretty with stylesheets off, has a full feature set, […]