Hey there good question. I did a search for the term “hyphen” through out the theme and this is what came up:
Searching 89 files for "hyphen"
C:\xampp\htdocs\forge\wp-content\themes\wp-forge\js\vendor\full_version\modernizr.js:
116 // <style> elements in IE6-9 are considered 'NoScope' elements and therefore will be removed
117 // when injected with innerHTML. To get around this you need to prepend the 'NoScope' element
118: // with a 'scoped' element, in our case the soft-hyphen entity as it won't mess with our measurements.
119 // msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx
120 // Documents served as xml will throw if using ­ so use xml friendly encoded version. See issue #277
C:\xampp\htdocs\forge\wp-content\themes\wp-forge\style.css:
387 }
388 .widget-area .widget {
389: -webkit-hyphens: auto;
390: -moz-hyphens: auto;
391: hyphens: auto;
392 margin-bottom: 3rem;
393 }
...
617 margin-bottom: 35px;
618 padding-bottom: 1.5rem;
619: -webkit-hyphens: auto;
620: -moz-hyphens: auto;
621: hyphens: auto;
622 -ms-word-wrap: break-word;
623 word-wrap: break-word;
7 matches across 2 files
So you may want to check and see if you remove those from the above areas and see what happens.
Also if you are using the Jetpack plugin, you may want to check and see if you have the auto correction on. I know it does this as well.
Hope this helps. If you like and use theme theme, please leave a rating and a review. As always, enjoy!
Thread Starter
rac71
(@rac71)
Hi there!
Thank you for your quick reply and suggestions.
I was able to remove the selected code from style.css in the editor. However, I’m not sure how to find the modernizr.js file.
Sorry, I have very little experience with coding, so if you can point out how I can find this, it would be appreciated. Thanks!
BTW, I have the Jetpack plugin, but the autocorrect doesn’t remove the hyphen/broken words.
Thanks!
I wouldn’t recommend removing anything from modernizer as it is a javascript file.
Removing it from the style sheet should be enough. Not only that but the word hyphen is just part of a sentence.
Look at these other forum posts concerning removing the hyphen:
https://wordpress.org/support/topic/how-does-one-stop-auto-text-hyphenation-completely?replies=8
https://wordpress.org/support/topic/turning-off-hyphenating?replies=13
you can also do a search yourself, like I did: auto-hyphenation + wordpress
hope this helps.
Thread Starter
rac71
(@rac71)
Thank you, yes this helped!
The second link you provided did the trick. So, I posted the following in the child’s theme:
p {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}
Excellent, thanks again!!