Path WordPress theme
Path is a parent theme for WordPress.
This theme is a parent theme. All modification should be made via a child theme.
Features
Path is built on Hybrid Core framework. I can't thank enough Justin Tadlock who has created it. This theme rolemodel is My Life theme, so check out all the Hybrid Themes.
- Per-post layouts which means that you can choose one, two or three column layout. Content on the left, right or center.
- Post setting that allows you to add a custom stylesheet for individual posts.
- A smart breadcrumb system.
- Built-in pagination.
- Post thumbnails that work with WordPress featured image functionality and provide extra features.
- Multiple sidebars areas: Primary, Secondary, Subsidiary, Before Content and After Singular.
- Dynamic body, post, and comment CSS classes.
- Fully internationalized, so you can translate the theme in any language. You should place your translations files to child theme
languages
folder.
- Built-in WordPress menu system. There are three menus in the theme: Primary, Secondary and Subsidiary.
- Context-aware action and filter hooks.
- Some of the most-used filter hooks are shortcode-ready and have accompanying shortcodes.
- Theme settings page (Appearance »» Theme Settings) that allows you to add footer text and set global layout.
- Set logo under Appearance »» Header.
- Set background under Appearance »» Background.
- Ability to create custom templates for any post type in multiple ways.
- Highly-configurable widgets that give you full control over their display.
- Widget areas are content-aware, meaning that they only appear if they contain active widgets.
- Support for Post Formats.
- Theme was designed with Mobile First attitude. It uses so called footer menus for "mobile" devices, Respond.js for legacy browsers and Fit Vids for videos.
Child themes
Path is a parent theme, so create a child theme for any customizations.
- Create a theme folder in your
/wp-content/themes
directory called path-child
.
- After that create a
style.css
file in /wp-content/themes/path-child
folder.
- At the top of your
style.css
file, add the below information.
/**
* Theme Name: Path Child
* Theme URI: http://link-to-your-site.com
* Description: Describe your child theme.
* Version: 0.1
* Author: Your Name
* Author URI: http://link-to-your-site.com
* Tags: Some, Tags
* Template: path
*/
After that you might want to import all the styles from parent theme.
@import url( '../path/style.css' );
/* Custom code goes below here. */
This is officially-supported way of modifying themes in WordPress.
Note!
If you want to use media queries in child theme and support them in browsers like IE7 and IE8,
you should copy and paste css rules from parent theme style.css
to child theme style.css
and remove line @import url( '../path/style.css' );
Remember to change all the url like this.
background: url(../path/images/menu-plus.png) no-repeat 0 0;
Supported plugins
Co-Authors Plus
Theme is designed for multi-author blogging or magazine style websites. Theme filters byline so that all authors are displayed if Co-Authors Plus is installed. And theme also adds author metabox under every article, displaying all authors. You can also add Twitter username in user profile.
Smart Archives Reloaded
If Smart Archives Reloaded is installed and active, it automatically do its magic in Archives page template.
Social Path
If Social Path is installed and active, you can share your posts on Twitter, Google+ and Facebook. Plugin adds these buttons after singular post.
Gravity Forms
Path includes base CSS for Gravity Forms plugin. CSS can be found in the middle of the style.css
.
Theme Settings (Appearance »» Theme Settings)
Set logo
Set logo under Appearance »» Header. Suggested logo size is 300 x 99 (in pixels). Image size is flexible so you can try different image size. Theme is using Header images only for logo, not header images. Of course you can remove default logo and Blog name will be displayed.
Set background
Set background under Appearance »» Background.
Change default layout
Path theme has two column layout by default, content on the left and sidebar on the right. You can change this default layout under Appearance »» Theme Settings. You can overwrite this in post
editor by choosing layout for that certain post:
- Default
- One Column
- Two Columns, Left (theme default)
- Two Columns, Right
- Three Columns, Left
- Three Columns, Right
- Three Columns, Center
Footer text
You can change Footer text in Footer Settings metabox.
Theme customize
You can also customize theme in live preview using WordPress customize. Check it out under Appearance »» Customize. It's pretty cool.
Page Templates
There are several page templates in this theme. They are located in page-templates
folder. If you need to overwrite page templates in a child theme, create subfolder page-templates
in child theme and copy certain page template in that folder and start modifying.
- Archives (archives.php): this page template automatically work with Smart Archives Reloaded Plugin. If it's not active, you're still covered with some basic archive stuff.
- Authors (authors.php): displays all the authors who have capability to publish or edit posts or pages.
- Most Popular (most-popular.php): displays most read articles in all time.
- Most Popular by comment (most-popular-by-comments.php): displays most commented articles in all time.
- Most Popular by month (most-popular-by-month.php): displays most read articles in current month and year.
- Most Popular by year (most-popular-by-year.php): displays most read articles in current year.
- Most Popular last 30 days (most-popular-last-30-days-php): displays most read articles in last 30 days.
- Slider (path-slider.php): Displays Sticky Posts in a slider and some more articles after that. So remember to use some Sticky Posts to see slider activated. Theme is using FlexSlider.
- Tag Cloud (tag-cloud.php): Displays Tag Cloud.
Slider
Path uses FlexSlider in Slider page template and in home page. Only sticky posts are shown in Slider, so if you want to see it in action you need to use some sticky posts. Recommended image size is 660 x 300 (in pixels). It's safe to use WordPress featured image as slider image but it's not necessary if you have attached images in posts. It graps the first one automatically. get_the_image
extension is used to do all the magic.
Action Hooks reference
With action hooks you can add your custom code in a certain points in the theme. If you open header.php
for example you'll
see this line of code:
<?php do_atomic( 'open_body' ); // path_open_body ?>
It means that you can add your code in that spot without modifying header.php
file.
You do it using child theme functions.php
. Add this inside setup function.
add_action( "{$prefix}_open_body", 'my_open_body_code' );
And this after setup function.
function my_open_body_code() {
echo 'My code';
}
Here are all the hooks used in Path theme.
- header.php
- path_open_body
- path_before_header
- path_open_header
- path_header
- path_close_header
- path_after_header
- path_before_main
- path_open_main
- menu-primary.php
- path_before_menu_primary
- path_open_menu_primary
- path_close_menu_primary
- path_after_menu_primary
- menu-primary-mobile.php
- path_before_menu_primary_mobile
- path_open_menu_primary_mobile
- path_close_menu_primary_mobile
- path_after_menu_primary_mobile
- menu-secondary.php
- path_before_menu_secondary
- path_open_menu_secondary
- path_close_menu_secondary
- path_after_menu_secondary
- menu-secondary-mobile.php
- path_before_menu_secondary_mobile
- path_open_menu_secondary_mobile
- path_close_menu_secondary_mobile
- path_after_menu_secondary_mobile
- sidebar-before-content.php
- path_before_sidebar_before_content
- path_open_sidebar_before_content
- path_close_sidebar_before_content
- path_after_sidebar_before_content
- 404.php, attachment-image.php, content-*.php, index.php, search.php, taxonomy-post_format-video.php
- path_before_content
- path_open_content
- path_before_entry (not in 404.php)
- path_open_entry (not in 404.php)
- path_close_entry(not in 404.php)
- path_after_entry(not in 404.php)
- path_after_singular (not in 404.php, search.php and taxonomy-post_format-video.php)
- path_close_content
- path_after_content
- comment.php
- path_before_comment
- path_open_comment
- path_close_comment
- path_after_comment
- comments.php
- path_before_comment_list
- path_after_comment_list
- sidebar-primary.php
- path_before_sidebar_primary
- path_open_sidebar_primary
- path_close_sidebar_primary
- path_after_sidebar_primary
- sidebar-secondary.php
- path_before_sidebar_secondary
- path_open_sidebar_secondary
- path_close_sidebar_secondary
- path_after_sidebar_secondary
- sidebar-after-singular.php
- path_before_sidebar_after_singular
- path_open_sidebar_after_singular
- path_close_sidebar_after_singular
- path_after_sidebar_after_singular
- footer.php
- path_close_main
- path_after_main
- path_before_footer
- path_open_footer
- path_footer
- path_close_footer
- path_after_footer
- path_close_body
- sidebar-subsidiary.php
- path_before_sidebar_subsidiary
- path_open_sidebar_subsidiary
- path_close_sidebar_subsidiary
- path_after_sidebar_subsidiary
- menu-subsidiary.php
- path_before_menu_subsidiary
- path_open_menu_subsidiary
- path_close_menu_subsidiary
- path_after_menu_subsidiary
Theme support
Support for the Path theme is not offered on the WordPress support forums. There is a community called Theme Hybrid where support is offered for this theme. You are encouraged to sign up to the site to use its support forums and become a part of the community.
Credits
Path is build on Hybrid Core framework by Justin Tadlock.
Theme uses
Copyright & license
Path is licensed under the GNU General Public License, version 2 (GPL).
This theme is copyrighted to Sami Keijonen.
2012 © Sami Keijonen. All rights reserved.