Skip to content

Tag: javascript

Hiding the “Welcome to your new WordPress site” message

Sitting here working on setting up a WordPress network and hit a snag. New sites have a giant “Welcome to your new WordPress site” message when someone logs in for the first time.

Now, I’m not against the message; and WordPress should definitely market where ever they can. But I’d like to be able to customize the layout a bit. Still plan on keeping links to WP and all of that, just want to add in some of my own welcome message.

Googling didn’t turn up anything except editing the core WordPress code which is a terrible idea. I don’t want to have to redo it every time WP upgrades. And it looks like there isn’t a hook or filter that can make it easy. So I had to make it ugly.

Adding a label when placeholder isn’t supported by browser

I’m sitting here working on a JavaScript heavy web app, and it has a few forms that are large enough that the placeholder attribute available in HTML 5 was the way to go. Only catch, not all browsers support placeholder so I needed something to fall back on.

What I normally do is put a label on top of the field, and that seemed a pretty good solution to fallback on if placeholder isn’t supported.