Changing the logo in DokuWiki can be done in two ways. The logo can be uploaded to the server directly through the cPanel File manager; or, the logo can be uploaded through the Media Manager through DokuWiki interface. This article will explain how to upload the logo through cPanel File manager and DokuWiki Media Manager.
The default logo size that DokuWiki uses for the wiki logo is 64px x 64px. To make sure the image is the correct format, make sure the file type is .png and that your logo is the same dimensions of the wiki logo. Logos that are sized differently than the original one may distort and look unappealing. The default DokuWiki logo is shown in the snapshot to the right.
Changing the logo through the Media Manager
Through the Media Manager, the logo can be uploaded to the wiki images on the server. DokuWiki stores the logo in the wiki:logo.png location (This will be explained on step 3). The logo will automatically replace the default DokuWiki logo. The following steps will explain how to upload your custom logo to the server through the Media Manager.
- Log into your DokuWiki as admin
Click the Media Manager link at the top right side.
Under [root], Click the wiki link on the left to load the wiki images. This is where the wiki:logo.png is stored.
Select the Upload tab. Click the upload button to upload your new logo.
Important! Your logo must be named logo.png for the logo to display on your DokuWiki site.
You should see the logo in the list of images on the Media Manager wiki page.
Visit your wiki homepage. The logo should automatically load and display on your wiki site similar to the image at the right.
Uploading the logo through File Manager
In the event you cannot upload through the Media Manager, you can directly upload the image to the server. The following will explain the steps in uploading your logo through the File Manager.
- Login into your cPanel.
- Go to the File Manager. Select the web root (public_html/www) directory and click Go.
- Navigate to your wiki folder where your DokuWiki was installed. The location will be similar to the following path. (Change “yourwiki” in the path to your wiki location.)
public_html/yourwiki/lib/tpl/dokuwiki/images
- Download the logo.png image to your desktop.
- Open the logo.png in an image editor like Photoshop or Gimp.
- Edit the image and add the graphics and text to the logo to suit your Wiki site.
Save the image.
Important! Your logo must be named logo.png for the logo to display on your DokuWiki site.
Rename the logo.png file on the server to logo-old.png. See the image to the right.
Upload your new logo. You should see both the logo-old.png and the loog.png in the files. See the snapshot to the right.
Clear your browser cache and visit the home page.
Now your DokuWiki site will display your new custom made logo.