Support » Theme: Boilerplate » Question about the default hyphen display formatting

  • Resolved smlacy



    First up, love the Boilerplate theme. It’s my first time using it, but I’m liking it a lot.

    I have a slightly uncommon problem. I have a client whose site I’m upgrading from HTML to WordPress. He’s an artist and very specific about how his site displays.

    Up until now, he’s been using a series of hyphens, like this:

    to divide sections of his content. He likes using it and it’s something he can easily do himself when maintaining his content. (As opposed to using custom divs & borders, which he wouldn’t be able to maintain himself.)

    However for some reason, when we put a series of hyphens like that into the Visual Editor, it looks great there, but then comes out completely different in the actual site.

    Below are links to screenshots of exactly what I mean.

    What it looks like in the visual editor:

    What it looks like within the actual site:

    See how it reduces the number of hyphens and makes the hyphens display as much chunkier?

    I can’t for the life of me figure out what styling in the CSS would control this feature. I’ve found a hack where I typed out the series of hyphens in Notepad++ and then pasted it into the HTML editor and it displays okay. But that’s not an ideal solution.

    An example of that is here (with the not-nice hyphens further down):

    If someone could point me in the right direction, I would be eternally grateful!


Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Aaron T. Grogg


    @smlacy: the first thing that should be done is to explain to the artist that regardless of the type of dash used, that’s not how a content divider should be created… there is a perfectly good content divider known as a horizontal row: <hr>. that said, your problem is more than likely a function of WP as it converts & stores the data from the editor into the database. try examining the content in an inspector panel to see if they are the same HTML characters; they likely are not. the only way around this that i can think of is to create a plug-in to change those characters back…

    good luck,

    I appreciate your thoughts, Aaron. I will look into that.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about the default hyphen display formatting’ is closed to new replies.