• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 40
  • Last Modified:

Dang Dashes

How do I eliminate dashes and funky word breaks in word press?  I want to prevent widows and orphans and simply have the word wrap if it is too long.
0
nsitedesigns
Asked:
nsitedesigns
  • 7
  • 4
1 Solution
 
captainCommented:
I think you can do this in CSS.

First identify the class for your content that you want to affect by this

Go into your Theme Editor and create a Custom CSS entry (or add a line into the main CSS if you have no custom section) and find the class and define

word-wrap: normal;

Open in new window


so for example:
.main-content {
word-wrap: normal;
}

Open in new window

hth
capt.
0
 
nsitedesignsAuthor Commented:
Aye aye Captain!  : )

Let me see if that helps.  THanks
0
 
nsitedesignsAuthor Commented:
Nope.  Didn't help.  Dashes are still displaying on some browsers.  On IE, you see the words break but there is no dash.  This is the css we are using.  Any thoughts?  Site is designed using word press.

   word-wrap: normal;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;

Open in new window

0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
nsitedesignsAuthor Commented:
Our goal is to not have dashes and not have word breaks at all. I would hope there is some solution out there.
0
 
captainCommented:
Not sure, IE is its own beast.

Try using the white-space property in conjunction, to see if that forces the lines to break instead of the words.

white-space: normal;

Open in new window

0
 
nsitedesignsAuthor Commented:
What should we change white-space too?  Normal doesn't fix it.
0
 
captainCommented:
This is baffling. These CSS properties are all that you should need. Can you run a Element inspector on the text if there is not some CSS that overwrites that?

Do you have a link to the site?
0
 
nsitedesignsAuthor Commented:
I know.  My programmer and I are equally baffled.  

We decided just to put dashes back into equation (we were trying to not have them at all) to see if that fixes problem.
0
 
captainCommented:
thx, keep us posted.
0
 
nsitedesignsAuthor Commented:
could not get your solution to work. thanks for trying.
0
 
nsitedesignsAuthor Commented:
i will give you points for trying.  solution didn't work
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now