Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/horttcore/wp-content-width
Setting the global WordPress variable `$content_width` in a single place for php and css
https://github.com/horttcore/wp-content-width
composer package wordpress
Last synced: 15 days ago
JSON representation
Setting the global WordPress variable `$content_width` in a single place for php and css
- Host: GitHub
- URL: https://github.com/horttcore/wp-content-width
- Owner: Horttcore
- Created: 2019-06-17T13:36:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T13:36:48.000Z (about 5 years ago)
- Last Synced: 2025-01-20T21:05:52.851Z (16 days ago)
- Topics: composer, package, wordpress
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Content Width
Setting the global WordPress variable `$content_width` in a single place for php and css
## Installation
`$ composer require ralfhortt/wp-content-width`
## Usage
```php
register();
``````css
.container {
margin-left: auto;
margin-right: auto;
max-width: var(--content-width);
width: 100%;
}
```