mundschenk-at / wp-typography
A WordPress plugin for improving your web typography
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 4
Forks: 3
Open Issues: 6
Type:wordpress-plugin
Requires
- php: >=7.4.0
- level-2/dice: ^4.0.4
- mundschenk-at/check-wp-requirements: ^2.0
- mundschenk-at/php-typography: ^6.6.0
- mundschenk-at/wp-data-storage: ^1.0
- mundschenk-at/wp-settings-ui: dev-master
Requires (Dev)
- brain/monkey: ^2.2
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- humbug/php-scoper: ^0.17
- mikey179/vfsstream: ~1
- mundschenk-at/phpunit-cross-version: dev-master
- paulthewalton/acf-stubs: ^5.8
- phpcompatibility/php-compatibility: ^9.0
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.2
- phpunit/phpunit: 5.*||6.*||7.*||8.*||9.*
- roave/security-advisories: dev-master
- sniccowp/php-scoper-wordpress-excludes: ^6
- squizlabs/php_codesniffer: ^3.4
- szepeviktor/phpstan-wordpress: ^1.1
- wp-coding-standards/wpcs: ^2.0
This package is auto-updated.
Last update: 2024-11-21 20:43:58 UTC
README
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.
wp‐Typography has the following requirements:
- The host server must run PHP 7.4.0 or later,
- your installation of PHP must include the following PHP extensions (most do):
- text must be encoded in UTF‐8.
wp-Typography can easily be ported to any other PHP-based content management system. The Composer package mundschenk-at/php-typography
assembles all typographic functionality (without any WordPress-specific code) in an object oriented format that is ready use.
View the wp-Typography homepage for more information.
Frequently Asked Questions
FAQs are maintained at the wp-Typography website.
Three questions come up so frequently, we will republish their answers here:
Will this plugin slow my page loading times?
Maybe. For best performance, use a persistent object cache plugin like WP Redis.
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.
What are the privacy implications of using the plugin?
wp-Typography does not store, transmit or otherwise process personal data as such. It does cache the content of the site's posts. If necessary, you can clear this cache from the plugin's settings page.
Changelog
A detailed release changelog can be found on the wp-Typography website.