Skip to content

WP-Theme-Components/components

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

WP Theme Components

WP Theme Components is a simple framework for resusing code between themes.

Installation

  • Download the latest release
  • Copy the components.php file into your theme directory.
  • Include the components.php file in your functions.php file or similar.

Installing Components

From A Repository

  • Clone the component's repository into the theme-components subdirectory in your theme directory.
  • Alternatively, download the latest release and copy the component folder into theme-components.

Creating A New Component

  • Create a folder inside a theme-components subdirectory in your theme directory
  • Inside the component folder, create a component.php file.
  • For best results, include a docblock in the following format:
/**
 * Component Name
 *
 * @author Author Name
 * @version Version Number (X.Y.Z)
 * @link URL for a repository if one exists
 * @package WP_Theme_Components
 * @subpackage Name_Of_Your_Component
 */

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages