How to Hide or Replace the WordPress Welcome Panel

Updated: now with more in-depth code!

So you want to modify the WordPress Dashboard Welcome Screen

There was a thread on the WPMU website that discusses how to disable the WordPress welcome screen, but the code provided didn’t work, so I figured I’d show how to do it!

The `wp_welcome_panel()` function uses the `show_welcome_panel` user meta setting to determine whether or not to show the welcome panel.  In order to modify this setting, we’re going to add a filter to the `get_user_metadata` filter, which uses the `get_metadata` function.

The following code snippets should be added to your theme’s `functions.php` file.

Disable the dashboard welcome screen…

This will only hide the panel, not replace it with any other content.

add_filter("get_user_metadata", "my_own_welcome_panel", 1, 4);

function my_own_welcome_panel($null, $object_id, $meta_key, $single) {
	if($meta_key === 'my_own_welcome_panel') { return 0; }
}

or Show Your Own Panel

You can replace the WP welcome panel with your own content using this snippet.

add_filter("get_user_metadata", "my_own_welcome_panel", 1, 4);
function my_own_welcome_panel($null, $object_id, $meta_key, $single) {

	// Only work with the show_welcome_panel
	if($meta_key !== 'show_welcome_panel') { return null; }

	// If the user has already said they don't want to see the panel, don't show it!
	$show_panel = get_user_meta( get_current_user_id(), 'my_own_welcome_panel', true );
	if(empty($show_panel)) { return 0; }

	// Echo your HTML or content here, but make sure to have a link like the following:
	?>
	<a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?my_own_welcome=0' ) ); ?>"><?php _e('Dismiss this Message'); ?></a>
	<?php

	// Return 0 or else the original welcome panel will show as well.
	return 0;
}

// Add the functionality to update the user's settings with whether or not they have closed the panel
add_action('admin_init', 'my_own_welcome_set_welcome_panel');
function my_own_welcome_set_welcome_panel() {
	if ( isset( $_GET['my_own_welcome'] ) ) {
		update_user_meta( get_current_user_id(), 'my_own_welcome_panel', intval($_GET['my_own_welcome']));
	}
}

{Gravity Forms Shortcode Explained|Gravity Forms Shortcode – A Detailed Explanation}

This post is about Gravity Forms, a WordPress contact form plugin.

I know about Gravity Forms…but what are shortcodes?

Think of shortcodes as a placeholder for where other content will be displayed: instead of “Insert a Gravity Forms form here,” we use the `gravityform` shortcode. Learn more about shortcodes on WordPress.org.

The Gravity Forms `shortcode` has five pieces:

`

Oops! We could not locate your form.

`

  1. `id` (required) – The ID of the form, as displayed on the Gravity Forms Edit Forms page in the Id column
  2. `name` (required) – The name of the form.
  3. `title` – Show the title to users? Default is true; set to “false” to disable
  4. `description` – Show the form’s description to users? Default is true; set to “false” to disable.
  5. `ajax` – Submit the form without refreshing? Default is false; set to “true” to enable.

Gravity Forms Shortcode Examples:

`

`
Will result in Form #1 being displayed without a title or description, with no-refresh entry submission. Continue reading “{Gravity Forms Shortcode Explained|Gravity Forms Shortcode – A Detailed Explanation}”

Enable PDF Uploads in CubeCart 4

No swimming, no file uploads in CubeCart either!The CubeCart file and image uploader in the product editor only allows for a small set of file types: jpg, gif, jpeg, png, swf, fla, jpg, gif, jpeg, png, avi, mpg, and mpeg. If you want to upload a PDF in CubeCart, you will have to manually FTP it into the uploads folder, and even then the file browser won’t show you PDFs. If you try to upload PDFs, you’ll get the following alert: “Invalid file type.”  Well here’s how to fix that. Continue reading “Enable PDF Uploads in CubeCart 4”

Two Easy Ways to Add “nofollow” to WordPress Menu Items

By default, WordPress menus don’t have the ability to add “nofollow” to the link items…but WordPress 3.0+ has the functionality built in.

This tutorial will show you how to add nofollow to specific items using the new wp_nav_menu() function. Continue reading “Two Easy Ways to Add “nofollow” to WordPress Menu Items”

How to Add an `Edit Product` Link for Interspire Shopping Cart

Why can’t I just click a link to edit the product I’m viewing?

Interspire, I love ya, but the Interspire Shopping Cart has some silly omissions. Like a simple “Edit Product” link if you’re logged in as an administrator. Instead, you have to go to the backend, search for the product, then edit it…which takes a solid 20 seconds.

Well, I got tired of that, so here’s a way to generate a proper Edit Product link. Continue reading “How to Add an `Edit Product` Link for Interspire Shopping Cart”

Un-Ban Yourself from WHMCS Administration

Is your IP banned from your own WHMCS?

Who can remember all their passwords all the time? I have a password manager, and I still don’t get it right.  I use the WHMCS software to manage client hosting and such, and so sometimes I get locked out of my own system because I’ve tried too many times to log in!

Here’s how to un-ban yourself:

Continue reading “Un-Ban Yourself from WHMCS Administration”

Interspire Shopping Cart — Add a Brands Drop-Down Menu

Don’t use the Interspire Shopping Cart? Check it out; it rocks.

The Interspire Shopping Cart is a great tool, but it’s missing some stuff out of the box.

This is how the Panel looks in the 'Adventure' theme.
This is how the Panel looks in the 'Adventure' theme.

I am working on a shopping cart for a client, and wanted to incorporate a drop down menu of brand names using a standard <select> form. Sounds easy, right? Well, it’s not included in the Interspire cart.

The Interspire cart has few brand options out of the box:

  • The Brands tag cloud – using the SideBrandTagCloud.html Panel
  • Brands unordered list – using the SideShopByBrand.html or SideShopByBrandFull.html Panels

This tutorial will show you how to add a brands drop down menu in 5 steps.

Continue reading “Interspire Shopping Cart — Add a Brands Drop-Down Menu”

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

ColdFusion, BabyRedirecting 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 way.

Here’s a simple method of redirecting a whole website in ColdFusion:

<!-- If the site isn't www... -->
<cfif (CGI.SERVER_NAME NEQ "www.example.com")>
<!-- Save the URL (and $_GET variables too) as the string 'strUrl' -->
<cfset strUrl = CGI.script_name & "?" & CGI.query_string />
<!-- Use 301 for SEO-friendly redirects -->
<cfheader statuscode="301" statustext="Moved permanently">
<!-- Redirect to new website (this case, added www.) with strUrl added on -->
<cfheader name="Location" value="http://www.example.com#strUrl#">
</cfif>

Continue reading “Redirect a Website in ColdFusion – Add www. or Move to New Domain”

Integrate Blogger Into your PHP Website using Includes

Blogger Banner

PHP includes for Blogger

Before writing this post, I looked online to see if others have written about this same topic. This might as well be Michael Gray’s “Integrating Blogger Into Your Website: Part II”, which he never wrote — though he did write Part I.

Step 1: Switch Blogger files to PHP

First, you need to update your publishing settings so that Blogger publishes your posts in PHP, not HTML (thanks to DevDoctor):

  1. Set up your blog to publish via FTP (on Publishing tab)
  2. Change the ‘Blog Filename’ to index.php
  3. Change ‘Archive Filename’ to archive.php (on Archiving tab)
  4. Finally, delete the old index.html file from the blog directory (otherwise it will probably take precedence over the new index.php)

Once you’ve got Blogger pushing out PHP, you’re able to do PHP stuff with the site:

  • Update the entire site at once – When I create a website, I always want to create the structure using PHP includes, so that I can set global site variables, and if I change it in one place, it changes across the whole website.
  • Set active navigation – Using SSI includes, I used to have to include a different file for each blog section on the site so that I could up. Here, I just send a variable to the navigation.php file, which tells it what page is active.

Next, I will show how to include these files. Continue reading “Integrate Blogger Into your PHP Website using Includes”

How to Create a Google Profile and Manage your Online Reputation

As seen on 7News – View the video on TheDenverChannel.com

Denver 7News

Why Google Profiles matter to you

Receive monthly tips like this one on how to get online exposure

As featured on the May 20th 7News program featuring Zack Katz of Katz Web Design, Google Profiles are a great way to be found online for your own name, even if you don’t have a website.If you set up an online profile with Google, a person looking for you online will be able to find you more easily.

Your profile will show up in search results

In the past, if you wanted to be listed in search results for your own name (it’s called a “vanity search”), you often needed your own website. Google is changing that, and giving users the power to show up in a search result with a picture and link to their profile.

Google Profile Embedded Results
The Google Profile box embedded in the search results for Zack Katz

In April, Google has started giving Profiles a prominent placement in search results. It is safe to presume that Google will be further incorporating the Profiles in the future, and assigning them more value. If you want to improve your findability online, setting up a profile is a great step to take. Continue reading “How to Create a Google Profile and Manage your Online Reputation”

How to Create a Custom RSS Feed in WordPress in 12 Lines of Code

Custom RSS feed me!

Custom RSS feed me, Seymour

Recently I wanted to create a feed for Google base that used a bunch of custom fields that I had created. It wasn’t easy to find what I was looking for online, so I thought I’d show how simple it is to make a custom feed & feed template in WordPress. Continue reading “How to Create a Custom RSS Feed in WordPress in 12 Lines of Code”

Twitter as I explained it to my mom

Blue jays tweet, too. When they aren't squawking.

After talking with my mom (@adiehl on Twitter) about Twitter, the “microblogging” website that asks you to explain “What are you doing?” in 140 characters, it prompted me to write yet another How to Twitter posts, but a less technical and more practical how to get started guide.

Twitter is not blogging. It’s not RSS. It’s not chat.

Twitter is direct: If you want to be part of someone’s life, you follow them. Once you follow a person, you get to see what they update on Twitter. You can respond directly to them. You may read what they are doing, sharing, or discussing. Unless the profile is locked, no one has to accept your request to follow. That means that you are able to become part of anyone’s social network. You have a way to directly communicate with lots of amazing people.

Getting started can be intimidating, but here’s how I got started with Twitter. Continue reading “Twitter as I explained it to my mom”

How to uninstall Adobe Apollo

Adobe Apollo was the code name for Adobe AIR, which has since taken its place. I’ve been trying to update my Twhirl application, but I was getting a message that I couldn’t update it because it was not made for that version of Adobe Apollo. Well no kidding, it was made for AIR!

I tried uninstalling and reinstalling AIR, but it turns out all I had to do was the following: Continue reading “How to uninstall Adobe Apollo”

Creating a Real Estate Website in WordPress — Part 2

Real estate website screenshot

If you find this article helpful, please share it, or Digg it!

In Part 1 of Building a real estate website in WordPress, you learned about a plugin called FreshPost that we used to set up the basic structure of your real estate website.  Using this article, you will be able to display a single listing page that has all the content your real estate website will need. Continue reading “Creating a Real Estate Website in WordPress — Part 2”

Disable Styles and Javascript in Safari with Keyboard Shortcuts – How To

Now Safari’s just as cool as Firefox

If you’re a web developer on the Mac, you may be sick of everyone talking about Firefox Addons that do everything but wipe your ass. True, Firefox is a great browser that is very expandable, but I love Safari, and I want to do as much web development on Safari as possible.

The feature that I missed the most in Safari was Disable Styles and Disable Javascript, both of which are super-easily done in Firefox via the Web Developer Plugin. With the advent of Safari 3, disabling CSS and Javascript is as simple as a keystroke combination of your choice! Continue reading “Disable Styles and Javascript in Safari with Keyboard Shortcuts – How To”

3 Simple Steps to keyword order SEO – Are your words SEO friendly?

Out of Order
Much search engine optimization revolves around guessing how users will search to find your site. When you’re optimizing for organic (non-paid) search results, you may be surprised to find out how much word order impacts the search ranking.

Optimize your website for organic search with varying keyword order

If you search the major search engines, you will find that the order of your keywords makes a huge difference on where your website ranks. Continue reading “3 Simple Steps to keyword order SEO – Are your words SEO friendly?”

How to publicize your business events online

Business people in front of a building

I wrote a newsletter article previously called "How to Schedule an Event Online," but recently I’ve had a few clients ask me how to get their events noticed. I’ve republished the article below:

Here’s the situation: consider that you have a business event coming up, and you want to organize everything online. You have a list of people you want to let know about it, and you want to set up a system for tracking responses. In addition, you want to publicize the event the best you can. Here’s how to do it all:

Continue reading “How to publicize your business events online”

How to get better search results with 5 simple steps

Search Engine Optimization is not voodoo; it directly translates into how well your website performs.  The Ignite Matchmaking website was not performing well last September for their main keywords.  Katz Web Design redesigned their site, optimized the site for their keywords, and now, look at their ranking:

  • Denver professional matchmaker: 1
  • Denver match makers: 2 (up from under 1000)
  • Denver matchmaking services: 2 
  • Denver matchmakers: 2 (up from 284)
  • Denver matchmaker: 3 (up from 508)
  • Matchmaking denver: 4 
  • Denver matchmaking: 5 (up from 112)

Currently, I am working with my client Savory Cuisines Catering in Boulder, CO to improve their ranking.  

The process I will follow to improve their rank:

There are more than five steps to help place higher in search engines, but the five below are simple and straightforward steps that anyone can take to improve their rank. Continue reading “How to get better search results with 5 simple steps”

Multiple Matte Colors for CSS Sprites

Here’s the problem: I want to use CSS Sprites for transparent images, and they require different matte colors.

The promise of CSS Sprites is great: you can combine many small images into one bigger image, and use CSS to reveal only the revelant parts. But what if you have a background image, and the background changes color on :hover? When trying to save the smilies, you can only choose one matte color. I need multiple matte colors!

The issue really is a pain when you have already given your object a stroke. Using the Appearance panel, we’ll make everything happy in the world again!

I want the three smileys to be combined as one

Continue reading “Multiple Matte Colors for CSS Sprites”