SPECIAL OFFER 40% OFF BLACK FRIDAY SALE. Use the coupon code 40BF2020 during checkout to receive 40% off the regular price!
*Excluding lifetime*

Adding Custom Section to Articles using Hooks

You are here:

In addition to adding content with KB Articles, you can customize sections of every article:

  • Article header
  • Article left and right sidebar
  • Article footer

Then add any of the following sections to your articles:

  • Common links to your support form
  • Sign up form for email subscriptions
  • Bookmarks
  • Article status, such as “new” or “beta”
  • Share buttons
  • Content version numbers
  • Common footer
  • And much more

You have two ways to accomplish custom sections:

PHP Hooks and CSS ID diagram

Hooks in the image below are grouped by color:

  1. Red Text – CSS ID’s to target with your Custom CSS.

  2. Blue Text – Hook names to add custom Code.

Custom Code example

Here is an example of code to add to your Child theme’s function.php file. This code will output text and a list item. From here you can create any kind of section, including contact forms, subscription form, links and layouts.

Previous Creating Custom Articles
Next Creating Custom Category Pages
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Need help?

Recent Articles

Table of Contents