wp-Typography

Description

Improve your web typography with:

  • Hyphenation — over 70 languages supported

  • Space control, including:

    • widow protection
    • gluing values to units
    • forced internal wrapping of long URLs & email addresses
  • Intelligent character replacement, including smart handling of:

    • quote marks
    • dashes
    • ellipses
    • trademarks, copyright & service marks
    • math symbols
    • fractions
    • ordinal suffixes
  • CSS hooks for styling:

    • ampersands,
    • uppercase words,
    • numbers,
    • initial quotes & guillemets.

Screenshots

  • wp-Typography "General" settings page.
  • wp-Typography "Hyphenation" settings page.
  • wp-Typography "Intelligent Character Replacement" settings page.
  • wp-Typography "Space Control" settings page.
  • wp-Typography "Add CSS Hooks" settings page.

Installation

Requirements

wp‐Typography has the following requirements:

  • the host server must run PHP 5.6.0 or later
  • your installation of PHP must include the mbstring extension (most do)
  • text must be encoded UTF‐8

FAQ

FAQs are maintained on the wp-Typography website.

Two questions come up so frequently, we will republish their answers here:

Installation Instructions

Requirements

wp‐Typography has the following requirements:

  • the host server must run PHP 5.6.0 or later
  • your installation of PHP must include the mbstring extension (most do)
  • text must be encoded UTF‐8
Will this plu­gin slow my page load­ing times?

Yes. Use WP Super Cache.

This plugin breaks post title links. What gives?

More likely than not, your WordPress theme is using an improper function to set the title attribute of your heading’s link. It is probably using the the_title() function, which delivers the post title after filtering. It should be using the_title_attribute() which delivers the post title before filtering. Change out this function throughout your theme when it is used inside of an HTML tag, and the problem should go away.

If you are uncomfortable editing your theme’s code, you may alternatively go to the wp-Typography settings page in your admin panel and add h1 and h2 to the “Do not process the content of these HTML elements:” field. This will disable typographic processing within improperly designed page title links and page titles.

Remember, many more FAQs are are addressed the wp-Typography website.

I’m using Advanced Custom Fields and don’t want my custom fields to be hyphenated! How can I disable that behavior?

Please install the wp-Typography Disable ACF Integration plugin by @sarukku.

Reviews

This little fella saved me! Great plugin!

I had a weird problem, wp suddenly replaced all (and only!) my left straight quotation marks with angle quotation marks. I tried EVERYTHING but I just couldn’t solve it.
I installed this plugin and boom! Everything was running smoothly again, plus it has many great features!! I recommend it to everyone, whether you’re facing any issues or not!

Awesome Plugin, Awesome Support

Highly recommended above any other typography plugin. Not only does it work exactly as intended, but the author is super-responsive and does a great job maintaining the plugin.

Absolut control over typography

Works right out of the box and with all the languages you can control a wide range of customer pages. Thx you for the long time you provide support and love for this plugin.

VERBESSERUNGS-VORSCHLAG

das Plug-In ist soweit ganz gut aber was mir dringend fehlt ist die Option, dass man nicht mehrere Trennungen untereinander am Ende der Zeile hat. So wäre es sehr schön, wenn vielleicht nicht mehr als 2 Zeilen untereinander an Trennungen stattfinden würden. Vielleicht kann diese Option ja noch programmiert werden (oder habe ich diese Einstellung tatsächlich irgendwo übersehen) Vielleicht kann mir hier jemand Auskunft darüber geben, das wäre sehr hilfreich.

Must have for typography lovers

All typography you can imagine for your WordPress frontend in just one handy plugin. Best of all is support at warp 9. There must be a Scotty in the engine room 😉

Read all 38 reviews

Contributors & Developers

“wp-Typography” is open source software. The following people have contributed to this plugin.

Contributors

“wp-Typography” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “wp-Typography” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

5.3.5 – May 10, 2018

  • Bugfix: 50/50 (and x/x except 1/1) are not treated as fractions anymore.
  • Bugfix: The French spacing rules were not applied to closing guillemets followed by a comma.

5.3.4 – April 22, 2018

  • Bugfix: Update used libraries to the latest versions.

5.3.3 – April 08, 2018

  • Bugfix: Correctly match smart fractions even if the are followed by a comma (i.e. 1/4,).

5.3.2 – March 24, 2018

  • Bugfix: Prevent future conflicts with other plugins by updating included libraries.

5.3.1 – March 15, 2018

  • Bugfix: Always clear the cache after updates to prevent frontend whitescreens under certain circumstances.

5.3.0 – March 13, 2018

  • Feature: True integration with Advanced Custom Fields 5, making the filters adjustable for each field via the settings UI.
  • Feature: The script to remove soft hyphens from clipboard selections has been refactored to reduce the number of loaded resources.
  • Change: Some API methods have been deprecated and will be removed in 6.0.0:
    • The static methods WP_Typography::filter* should be replaced by static calls to the existing process* method family.
    • In general, all instance methods of the new class WP_Typography\Implementation can now be called statically on the singleton via the WP_Typography superclass.
  • Bugfix: In rare cases, UTF-8 characters like Å caused all content within the same tag to disappear.

5.2.4 – February 26, 2018

  • Bugfix: The partial was still packaged in the wrong place, causing backend whitescreens in some cases.

5.2.3 – February 22, 2018

  • Bugfix: A partial was missing from the compatibility checking code for older PHP versions.

5.2.2 – February 04, 2018

  • Bugfix: Superscripts were not displayed correctly in the settings page.
  • Bugfix: Standalone < and > characters (i.e. not part of an HTML tag) could vanish in some circumstances.
  • Bugfix: Re-activating the plugin no longer overwrites the settings with their defaults.

5.2.1 – January 11, 2018

  • Bugfix: Languages were not sorted correctly in the settings page.
  • Bugfix: Circular references in caches objects have been fixed.
  • Bugfix: Workaround for Divi theme crash, avoiding get_body_class().

5.2.0 – January 05, 2018

  • Feature: WordPress body classes (i.e. the result of get_body_class()) are now passed to the text processing methods. This means that you can exclude entire pages from wp-Typography’s processing based on the body classes generated by WordPress.
  • Feature: Support for WooCommerce page descriptions (via the filter hook woocommerce_format_content).
  • Feature: New hyphenation languages
    • Assamese,
    • Belarusian,
    • Bengali,
    • Church Slavonic,
    • Esperanto,
    • Friulan,
    • Gujarati,
    • Kannada,
    • Kurmanji,
    • Malayalam,
    • Norwegian (Bokmål)
    • Norwegian (Nynorsk)
    • Piedmontese,
    • Romansh,
    • Upper Sorbian.
  • Change: Updated to use version 6.1.0 of the composer package mundschenk-at/php-typography.
  • Bugfix: Numbers are treated like characters for the purpose of wrapping emails.
  • Bugfix: Better matching between hyphenation languages and WordPress locales.