Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/metabolism/wordpress-bundle-demo

Implementation of the Twenty Nineteen Wordpress theme for Symfony wordpress-bundle.
https://github.com/metabolism/wordpress-bundle-demo

composer dotenv symfony symfony-bundle wordpress wordpress-development yml

Last synced: about 4 hours ago
JSON representation

Implementation of the Twenty Nineteen Wordpress theme for Symfony wordpress-bundle.

Awesome Lists containing this project

README

        

# WordPress Bundle for Symfony demo

## Introduction

This is an implementation of the "Twenty Nineteen" WordPress theme for wordpress-bundle.

The "theme" concept has been removed on WordPress Bundle, templates are now twig files located in `/templates`

Sass and js files are compiled using Symfony Encore, source are located in `/assets`, compiled files in `/public/build`

## Documentation

Full bundle documentation is available on [Gitbook](https://metabolism.gitbook.io/symfony-wordpress-bundle/)

[![Doc - Gitbook](https://img.shields.io/badge/Doc-Gitbook-346ddb?style=for-the-badge&logo=gitbook&logoColor=fff)](https://metabolism.gitbook.io/symfony-wordpress-bundle/)

## Installation

#### Clone the repo

```shell
$ git clone https://github.com/wearemetabolism/wordpress-bundle-demo.git my_site
```

#### Install vendors

```shell
$ composer install && npm install
```

#### Build assets

```shell
$ npm run build
```

#### Copy .env.local sample

```shell
$ cp .env.local.sample .env.local
```

#### Create empty database

```sql
CREATE DATABASE dbname;
```

#### Update .env.local

```shell
$ nano .env.local
```

#### Start server

```shell
$ symfony serve
```

#### Install WordPress

Navigate to https://127.0.0.1:8000 and follow the installation procedure

#### Update .env.local

```dotenv
WP_INSTALLED=1
```
#### Enable "WordPress on Steroids" plugins

Login to the admin and go to Plugins/Installed plugins

#### Clear cache

```shell
$ php bin/console cache:clear
```

## Troubleshooting

### Frontpage display Symfony welcome screen

Please visit WordPress [permalink settings page](https://127.0.0.1:8000/edition/wp-admin/options-permalink.php) and save to flush rewrite cache