Resources

Resources

Overview

Resources is a nicely formatted documentation section that uses custom post types to allow for special search functionality.

Installation & Activation

Resources can easily be downloaded from inside WordPress using Extend.

  1. Download the plugin from Extend. It will now appear in your Plugins tab.
  2. Click Plugins, and find your Resources plugin (titled PageLines Section Resources).
  3. Click Activate to be able to use the plugin inside your editor.
  4. Go to your PageLines Builder where you will now find Resources in the Advanced section.

Configuration

As with all section, the Resources section includes the Standard Section Options such as padding/margin, background options and etc.

Settings

The Resources section has very few configuration options, these are located in the WordPress Admin Dashboard → PageLines → Settings, then select the Resources tab.

Resources Title
Enter the title of your resources, this could be simply resources or documentation, the choice is entirely up to you. The title will appear on both the Resource index page and individual resource posts.

Resources Subject
The subject option allows you to enter the subject in which your resources are directed at, this could be your product name. The subject will appear above the resources title option and uses a <h4> tag.

Base Permalink Rewrite Slug
The Resources section uses custom post types, which operate across several pages in your site. As such, we need a base slug relative to your site url, that you would like to build permalinks on.

Note: Once changed, you will need to save your Permalink settings in the WordPress Admin Dashboard for the changes to take place.

Creating Resources

The Resources section uses custom post types to populate the Resources section. This works in the same way as creating posts to populate your blog.

To add Resources, navigate to the WordPress Admin Dashboard → Resources and select Add New. Add your content and assign your Resources post to a chapter, the chapter and post will automatically be added to your Resources home.

Resources Create Post

Creating Chapters

To create a Chapter, navigate to the WordPress Admin Dashboard → Resources and select Chapter. The interface is almost identical to the Categories page for the Post post type.

Resources Create Chapter

Term Sort Order
The Term Sort Order option field, allows you to enter a numeric value to sort the order of your chapters on the Resource home. Lower values, will be listed first.

Shortcodes

The Resources section can be inserted into a page, post or widget using the shortcode below. This is used as a quick reference and we recommend including a unique ID.


[pl_section section="resources" id="Enter_Unique_Id_Here"]

Classes

We recommend using your own custom classes via the Additional Styling Classes option to customize sections. However, you can use the classes below as a quick reference or in your own styles, if you prefer to use the default class(es) instead of your own.


/* pl-sn-resources class is assigned to the <section> element */
.pl-sn-resources { ... }

/* Assigned to the <div> that adds top/bottom padding */
.pl-resources-mast { ... }

/* Assigned to the <div> that wraps
 * the subject, title and searchbar. 
 */
.pl-content-area { ... }

/* Resources title */
.pl-resources-mast h1 { ... }
/* Resources subject */
.pl-resources-mast h4 { ... }
/* Resources search form */
.pl-resources-search { ... }

/* Assigned to the  that wraps the chapter columns */
.pl-resources-content { ... }

/* Allows you to style the chapter columns */
.pl-resources-content .pl-col-sm-4 { ... }
/* Style the first chapter column */
.pl-resources-content .pl-col-sm-4:nth-child(1) { ... }
/* Style the second chapter column */
.pl-resources-content .pl-col-sm-4:nth-child(2) { ... }
/* Style the third chapter column */
.pl-resources-content .pl-col-sm-4:nth-child(3) { ... }

/* Styles the Chapter title */
.chapter-items h4 { ... }
/* Styles the Resource post title */
.chapter-items li a { ... }

On This Page