Custom Page Templates

Every now and then, it is necessary to create a page template for a specific page layout – one that is drastically different than the standard page.php file. For example, the About page of a site may have a significantly different layout and content pieces than a standard interior page.

[...]
Read More

Featured Image

By default, the Featured Image gets pulled in on every interior page along the top, with the page title overlayed. The main files for changing the featured image can be found either in /_includes/featured.jade, or /functions/featured.php. The Jade file is how the featured gets pulled in and displayed, while the /functions/featured.php file is the actual logic which tells the page what content [...]

Read More

Sidebars

The PHOS Framework has a separate file broken out for handling sidebars. Use sidebar.jade to edit the sidebar. There are several ways to manage the sidebar content. A straightforward coding approach would work well for a sidebar that is consistent across all pages of the site. For a more conditional approach, use the markup example in the comments of sidebar.jade.

[...]
Read More

File Structure

Read More

Plugins

We include a variety of plugins within the framework by default:

[...]
Read More

Custom Post Types

We have simplified the process of adding custom post types by using arrays within a post-types.php file. In the /functions/ folder, you will see post-types.php. At the top, between lines 16 and 26, you will see a sample post type called “example” set up. Change the names, slug, and dashicon to customize the CPT. To add another, simply duplicate the inner array and add it within the [...]

Read More
MENU