• Ellow,

    Problem with dash converting. I have search through Forum, find some solution but all for old version off WP.

    I add in editor this:
    http://s21.postimg.org/i3moz0l8z/image.jpg

    Frontpage i get:
    http://s2.postimg.org/sx0oqnj3p/image.jpg

    I have add code: (in template functions.php)

    add_filter( 'the_content' , 'mh_double_dash' , 99 );
    function mh_double_dash( $text ) {
            return str_replace( '–', '--', $text );
    }

    My site is for guitar tablatures. Most of plugins are (sadly) outdated.

    Help would be nice,

    Best regards, Stanly

Viewing 1 replies (of 1 total)
  • Hi Stanley,

    the key on the keybord gives you a hyphen not an en-dash and two hyphens are always converted to an en-dash. You can type an en-dash with Opt-{hyphen} on OS X or Alt + 0150 in Windows. Or switch to HTML editor and add en-dash using HTML entity code like this:

    –––

    You don’t need that code in your functions.php file.

Viewing 1 replies (of 1 total)

The topic ‘Dash converting problem’ is closed to new replies.