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
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.
- Login into your cPanel
- Go to the File Manager. Select your DokuWiki installation location and click Go.
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.
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 -->
Place the beginning comment before the following:
<!-- <div class="buttons">
And right after the next div code.
</div> -->
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
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.
- Login into your cPanel
- Go to the File Manager. Select your DokuWiki installation location and click Go.
- 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
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 ?>
Commenting should look like the following.
<!-- <?php tpl_license(''); // license text ?> -->
Save the file and your DokuWiki should look like the snapshot to the right with the License text missing.