• mclark

    (@mclark)


    I am using a child theme, and am using the following code:

    .site-content article {
    margin-bottom: 1rem;
    word-wrap: normal;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
    }

    But static pages and posts are still hyphenating.

    I used the same code in the widget area, and it worked fine there.

    Any ideas why?

    The site is https://www.crestviewmarketing.com

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • jtyarks

    (@jtyarks)

    Hey mclark,

    I just checked out your site and it looks like you’re using “auto” instead of none:

    Open your styles.css and go to line 956:

    .site-content article {
    border-bottom: 4px double #ededed;
    margin-bottom: 72px;
    margin-bottom: 5.142857143rem;
    padding-bottom: 24px;
    padding-bottom: 1.714285714rem;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    }

    Change those to none and it’ll work just like the widget area.

    Thread Starter mclark

    (@mclark)

    Thanks, but I am using a child theme, and it already includes that code.

    Actually I just figured out what was causing it. There was an extra “}” immediately above the .site-content article line.

    Once I removed it, it worked fine.

    Thanks again for responding.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling hyphenation in Twenty Twelve’ is closed to new replies.