Daniel 'MaTachi' Jonsson

Category Archives: Web Design

How to Use Double Dash in WordPress

To make WordPress stop converting two dashes into a single one, follow this guide:

  1. Open wp-includes/formatting.php.
  2. Navigate to line 56.
  3. Change line 56 and 57 from:
    $static_characters = array_merge(array('---', ' -- ', '--', ' - ', 'xn–', '...', '``', '\'\'', ' (tm)'), $cockney);
    $static_replacements = array_merge(array('—', ' — ', '–', ' – ', 'xn--', '…', $opening_quote, $closing_quote, ' ™'), $cockneyreplace);

    to:

    $static_characters = array_merge(array(' - ', 'xn–', '...', '``', '\'\'', ' (tm)'), $cockney);
    $static_replacements = array_merge(array(' – ', 'xn--', '…', $opening_quote, $closing_quote, ' ™'), $cockneyreplace);
  4. Done!

Preview and Download My Sticky Footer Layout

I have cleaned up the code to the layout I wrote about in my previous post. It’s a layout written in XHTML 1.0 Strict and CSS, with a sticky footer that stays at the bottom of the page. I have validated both the XHTML and CSS, so it should work good in the most browsers (except IE6 maybe, as usual? :) ). It also has many semitransparent .png-images, which makes it pretty cool.

The layout is supposed to work as a WordPress theme (or to any similar blogging platforms), which shouldn’t be that hard to accomplish by integrate it with a existing theme.

It’s available to be previewed here:

If you easily want to download the complete layout, with the layout image file (.xcf (GIMP)) included, you can do it with the following link:

Check it out, get inspiration and/or steal the code!

Make CSS Footer Stay at the Bottom of the Page

I’m currently working on a small website in HTML and CSS for web design class in school. Though, I had major problems with positioning the footer at the bottom, get the background image of the layout to work right and shit. It didn’t become easier with my layout background image being an semitransparent .png-file. So messy…

However, I stumbled over two good website that helped me to get in the right direction with getting the footer to stay at the bottom. They didn’t completely solve my problems, but yeah, they helped much. Here are links to them:

EDIT: You can check out the theme here and download it.