clirdlf / clir_theme

WordPress theme enhancements
https://www.clir.org
1 stars 0 forks source link

CLIR+DLF Child Theme

Build Status Waffle.io - Issues in progress

This is a Wordpress child theme for CLIR+DLF websites. You will need to make sure you have the latest version the Alchem Pro theme and it is in your themes directory.

Development Setup

I'm assuming you're using MAMP. If you're doing something else, you'll need to update the dev_url in gulpfile.js to whatever your connection is (and probably port too).

$ cd /Applications/MAMP/htdocs/wordpress/wp-content/themes
$ ln -s ~/projects/projects/clir_theme

Then activate the theme in the Wordpress admin panel.

Install the node dependencies:

$ cd ~/projects/clir_theme
$ npm install

Create a .env file in the project root and set the following entries:

DEV_URL='http://localhost:8888/wordpress'
DEV_PORT=8888

Adjusting your port and URL to the appropriate location.

Open the project in your favorite editor, then start the gulp proxy to compile SCSS and do browser refreshes on saves.

$ cd ~/projects/clir_theme
$ mvim .
$ gulp

Customizations

To make things "easy" the top_bar is updated in the theme so when these links change, it can be done in the theme and all sites will be updated as soon as the theme is pushed to the Multisite instance.

winning