Skip to content

Development Workflow

Brian McCoy edited this page Feb 23, 2018 · 6 revisions

Alloy Core is great at providing the tools you need to integrate website designs into WordPress. It's usually best to turn the designs you're given into HTML/CSS first and then integrate them into your WordPress theme.

Let's say you're going to integrate the "About" page.

Create your PHP file

In your theme's root directory create a file called template-about.php and set up your class:

<?php
class Template_About extends Core_Template {

}
global $post;
new Template_About( $post->ID );

Create your Twig template file

In the views directory of your theme create template-about.twig:

{% extends "base.twig" %}
{% block content %}

{% endblock %}

Clone this wiki locally