Skip to content

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

Notifications You must be signed in to change notification settings

metabolism/wordpress-bundle-demo

Repository files navigation

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

Doc - Gitbook

Installation

Clone the repo

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

Install vendors

$ composer install && npm install

Build assets

$ npm run build

Copy .env.local sample

$ cp .env.local.sample .env.local

Create empty database

CREATE DATABASE dbname;

Update .env.local

$ nano .env.local

Start server

$ symfony serve

Install WordPress

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

Update .env.local

WP_INSTALLED=1

Enable "WordPress on Steroids" plugins

Login to the admin and go to Plugins/Installed plugins

Clear cache

$ php bin/console cache:clear

Troubleshooting

Frontpage display Symfony welcome screen

Please visit WordPress permalink settings page and save to flush rewrite cache