ThemeShaper Forums » Acamas

[closed]

Disabling automatic em dashes in Acamas?

(4 posts)
  • Started 3 years ago by ilford
  • Latest reply from helgatheviking
  1. ilford
    Member

    Hi,

    I've been using the Acamas theme for the internal blog at my company (the blog is hosted on an internal server so I can't provide a link).

    My issue: apparently Acamas automatically converts normal dashes to em dashes. This causes trouble because we post paths to files (ie C:/MyDocuments/2011 - Folder).

    How can I disable Acamas from automatically using em dashes?

    As a fan of typography this is painful but necessary.

    http://imgur.com/rSFf3

    Posted 3 years ago #
  2. from a quick google search i think it is default WP behavior and not Acamas/thematic specific

    http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=wordpress+automatically+uses+em+dashes

    the first result explains things pretty well. the 3rd result points to an old WP support post- which led me to dig around in the wp-includes/formatting.php file. there appears to be a no_texturize_tags filter that might be useful.

    Posted 3 years ago #
  3. ilford
    Member

    hi helga,

    thank you for the pointer! I actually changed a line in wp-includes/formatting.php

    $static_characters = array_merge(array('---', ' -- ', '--', '-', 'xn–', '...', '', '\'\'', ' (tm)'), $cockney);
    to

    $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '', '\'\'', ' (tm)'), $cockney);

    Posted 3 years ago #
  4. eeek... hacking at core. but i guess there was no other way? just remember that you will lose this the next time you update WP. don't forget to mark as resolved.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.