Inserting a custom CSS menu in DokuWiki Updated on August 16, 2021 by InMotion Hosting Contributor 1 Minutes, 31 Seconds to Read DokuWiki has preset menu items towards the top right that are very difficult customize. The links are Recent Changes, Media Manager, and Sitemap. These are there by difault and are difficult to change. You can use a custom made css menu that can be inserted into the wiki header code. This will allow you to add your own links to the top of each page. The template used in this tutorial is the DokuWiki theme. Adding custom menu code The following steps will explain how to add custom HTML and CSS to your template 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_header.php Open the tpl_header.php file in the code editor. Insert the menu code in the file right before the following code: <!-- BREADCRUMBS --> Here is the custom code for the header section. <!-- Begin Custom Menu --> <style type="text/css"> #custom_menu {clear:both;} #custom_menu ul {padding:0px;} #custom_menu ul li {display:inline; margin:0px 10px 0px 0px;} </style> <div id="custom_menu"> <ul> <li><a href="/doku.php?id=html_basics">Html Basics</a></li> <li><a href="/doku.php?id=contact_us">Contact Us</a></li> </ul> </div> <!-- End Custom Menu --> Save the file. You can edit the source code of the menu to link to your existing pages and change the link names to customize the menu further. The snapshot to the right will show what the menu looks like after the page is saved. Share this Article Related Articles Installing DokuWiki with Softaculous Installing DokuWiki Manually How to log into DokuWiki How to manage users in DokuWiki How to create pages in DokuWiki How to change the DokuWiki logo Changing the DokuWiki template DokuWiki Basic Settings: Site title, Site URL, and License Removing the DokuWiki footer buttons and text How to use the menu plugin in DokuWiki