WordPress.org

Support

Support » Installation » – inserted in place of two dashes

– inserted in place of two dashes

Viewing 6 replies - 1 through 6 (of 6 total)
  • WordPress’s automatic “text-beautifying? routines are converting your two consecutive hyphens into an en dash. The HTML identifier “–? (or, in hexadecimal, “–?) refers to the en dash in Unicode.

    Instead of typing your pair of hyphens verbatim, try typing the following identifier sequence:

    --

    I expect that this will prevent WordPress from changing them, but I haven’t tested it myself; try it and see if it works.

    Where do I type the identifier sequence?

    If you’re typing a new post, then wherever you want a pair of hyphens that stays a pair of hyphens, type the sequence I mentioned instead of actually typing two hyphens on your keyboard.

    If you’re editing an existing post to fix it, then wherever there’s an en dash that ought to be a pair of hyphens, simply select the en dash and replace it with the sequence I mentioned.

    The identifier “-? is an “escaped? representation of a hyphen. By disguising each of the two hyphens this way, I’m hoping they’ll slip past the text-beautifying routine without being combined into an en dash.

    The problem is not with any post but with my blog itself.

    If you go to http://www.silver--bracelets.com/blog/index.php you’ll see that the CSS file does not load because of the problem mentioned above.

    If you look at the source code, you will notice that “–” has been inserted in several places.

    Where do I go to have the “–” removed and insert “--”?

    Can anyone help me resolve this problem?

    What documents do I need to access and what changes need to be made so that my blog will funcion correctly?

    For the experts out there that may be able to help, I’ll state it another way to perhaps make clearer the problem. His web site’s name has two dashes in it, but WP is changing the URL to a single en-dash so that the links are incorrect and it doesn’t point correctly to things such as the directory containing his css file. Where does he need to modify his URL by inserting the escaped version (--) of the dashes so all the URLs will be referenced correctly? Is it simply in admin under Options|General or somewhere else?

    Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘– inserted in place of two dashes’ is closed to new replies.