Removing the DokuWiki footer buttons and text

DokuWiki by default will have buttons and the License text at the bottom of each page. In Most cases, the buttons are not desired on the site. You also, may not want the license text there as well, depending on the type of wiki you are building. This article will explain how to remove the button links and the license text from the footer of the DokuWiki theme.

Removing the buttons from the footer

Preview of bottom buttons in footer DokuWiki

The DokuWiki footer buttons cannot be removed through the DokuWiki administrator section. The following section will give a step by step instruction for removing these buttons from the footer of the DokuWiki theme code.

  1. Login into your cPanel
  2. Go to the File Manager. Select your DokuWiki installation location and click Go.
  3. Edit the CSS file DokuWiki

    Navigate to the following file.

    public_html/your-dokuwiki/lib/tpl/dokuwiki/tpl_footer.php

    Open the tpl_footer.php in the file manager code editor.


  4. Button code for DokuWiki theme

    Find the code shown in the snapshot to the right.

    To keep from breaking the theme accidentally and to retain the original code without deleting it, we will use HTML comments to comment out the button code. HTML comments look like the following.

    <!--  Code to comment goes here -->

    Comment code for buttons in DokuWiki

    Place the beginning comment before the following:

    <!-- <div class="buttons">

    And right after the next div code.

    </div> -->


  5. Footer with buttons removed DokuWiki

    After saving the file, your wiki should look like the snapshot to the right. Now the Buttons will not show on the footer anymore.

Removing the License text from the footer

DokuWiki footer license text

The footer shows License text by default. See image to the right. This text can be completely removed from the site. The following steps will explain how to remove the license text.

  1. Login into your cPanel
  2. Go to the File Manager. Select your DokuWiki installation location and click Go.
  3. Open the tpl_footer.php in the code editor found at the following file location.

    public_html/your-dokuwiki/lib/tpl/dokuwiki/tpl_footer.php


  4. Code for License text DokuWiki

    This is the same process as commenting the button code, except in this case we are commenting the following code.

        <?php tpl_license(''); // license text ?> 

    Comment License code for DokuWiki theme

    Commenting should look like the following.

    <!--     <?php tpl_license(''); // license text ?> -->


  5. DokuWiki License text removed

    Save the file and your DokuWiki should look like the snapshot to the right with the License text missing.

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X