CSS: target Firefox

Here’s a quick tip to target exclusively Firefox with CSS:

@-moz-document url-prefix() {
hr { height: 2px;
}
}

For example, I was using a <HR> with two colors to look like a pressed line. This works in all browsers, except Firefox.

Tagged , ,
Leave a comment
 
 

WordPress plugin for IE 6 warning

A good WordPress plugin to warn users that still use Internet Explorer 6 is IE6 Upgrade Option.

Fortunately, the need to spend hours fixing the way IE 6 screws up websites is gone. But, though the thing is almost dead, it still accounts for 2% or 3% of the visits. We still need this kind of warning.

I used to install the Shockingly Big IE6 Warning plugin, but grew tired of always having to adjust the warning CSS.

Tagged ,
Leave a comment
 
 

Multilanguage WordPress

Looking for a good solution to implement a multilanguage WordPress instalation?

For me, a multisite instalation, with a site for each language, works flawlessly, with the plugin Multisite Language Switcher.

In comparison to some old Joomla multilingual sites, this is so much tidy and clean!

Tagged ,
Leave a comment
 
 

Custom slug in custom post types, 404 errors

Here is a quick tip that could save time for whoever is stuck with this custom post type WordPress issue.

With custom post types, it’s possible to alter the slug of the permalink structure (Custom Permalinks for Custom Post Types in WordPress 3.0+).

Maybe you need this to, let’s say, change the permalink structure of an old custom post type, with several posts inside.

What is hard to find on the web is that, after this modification, all the custom posts will be inaccessible and you’ll get only 404 errors.

To solve this, you’ll have the resave the permalinks’ global configuration (even with no modifications). Only this will reset the old permastruct and allow the new one.

([resolved] Permalinks 404 with custom post type)

Tagged ,
Leave a comment