ralfhortt / wp-content-width
Setting the global WordPress variable `$content_width` in a single place for php and css
Installs: 1 872
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
README
Setting the global WordPress variable $content_width
in a single place for php and css
Installation
$ composer require ralfhortt/wp-content-width
Usage
<?php use RalfHortt\ContentWidth\ContentWidth; (new ContentWidth(980))->register();
.container { margin-left: auto; margin-right: auto; max-width: var(--content-width); width: 100%; }