Organized Docs WordPress Plugin

Remove the Table of Contents Widget

Since version 2.0, Organized Docs include an easy template system. The template files are at:

organized-docs/includes/templates/

As of version 2.0.3, there are four template files for Organized Docs:

  • single.php
  • taxonomy.php
  • archive.php
  • sidebar.php

 
There are 2 ways to remove the Table of Contents widget depending on whether you want to add other widgets on the single Docs sidebar, or remove the sidebar from single Docs altogether.

Method 1: Remove the Table of Contents widget, but keep the sidebar to show other widgets:

This method let’s you remove the Table of Contents widget, while leaving the sidebar in place so that you can add other widgets here. This is useful if you want to show other widgets on single Docs posts.

Add your desired widgets to the single Docs by going to “Appearance –> Widgets” and adding your widgets to the Docs Widget Area. Once you add your desired widgets, preview your site and you’ll notice that the Table of Contents no longer appears.

Method 2: Remove the entire single Docs sidebar altogether:

Follow the steps for Customizing the Single Docs page, but leave out the Table of Contents widget code, which looks like this:

$sidebar = $Isa_Organized_Docs->get_template_hierarchy( 'sidebar' );
include_once $sidebar;

Updated on May 17, 2015

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]