DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:topbar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:topbar [2015-03-22 01:00] – reply to spacing problems achtips:topbar [2023-06-15 10:36] (current) – support in JJ? asheenlevrai
Line 13: Line 13:
 </code> </code>
  
-For that to work you need two files, **which are automatically included** (//automatically included by what?//). If they don't exist yet, just create them. If they do exist, just add the code to them. The code is using the new default template as an example.+For that to work you need two files, **which are automatically included** (//by dokuwiki code(tpl_footer.php)//). If they don't exist yet, just create them. If they do exist, just add the code to them. The code is using the new default template as an example.
  
 Add this to your template's folder((most templates support the include hook for ''footer.html'', some might not)): Add this to your template's folder((most templates support the include hook for ''footer.html'', some might not)):
Line 30: Line 30:
     /* top bar */     /* top bar */
     .dokuwiki .topbar {     .dokuwiki .topbar {
-        position: absolute;+        position: absolute; /* "fixed" for sticky on top */
         top: 0;         top: 0;
         left: 0;         left: 0;
Line 142: Line 142:
  
 Maybe a plugin is of interest for the visitors of this page: [[plugin:topbarsyntax]] Maybe a plugin is of interest for the visitors of this page: [[plugin:topbarsyntax]]
 +
 +Change the position to fixed instead of absolute will make the top bar sticky at the top. :)
 +
 +==== Compatible with Hogfather? ====
 +
 +<del>Hi :) Is this compatible with Hogfather? I was using it on greebo but can't seem to make it work on Hogfather (the topbar is not displayed).</del>\\
 +<del>Tx</del>\\
 +<del>-a-</del>
 +
 +EDIT: [[https://forum.dokuwiki.org/d/19658-topbar-in-hogfather|apparently it is]]. My bad.\\
 +-a-
 +
 +==== IGRO  (2022/08/01) ====
 +
 +Since the upgrade to IGRO, the font is different. What must be done here so that it looks "normal" again?
 +
 +Self solution <code css>font-size: 100%;</code>
 +
 +
 +-----
 +==== Dumb Question: Is the top-bar fixed, non-scrolling? ====
 +<del>Many thanks for this plugin, I'm utterly incompetent with html, css and similar but I've managed to follow your instructions. \\
 +I find that the top-bar moves up and off the screen when I scroll down - is the expected behaviour? \\
 +Referring to ''./conf/userall.css'' the line ''position: absolute; /* "fixed" for sticky on top */'' made me think that the top-bar should remain visible even on scrolling. \\
 +TIA \\
 +a</del>
 +
 +
 +//__**answering myself:**__  \\
 +Oh the humiliation; but I leave this in case anyone in future stumbles across it. \\
 +I realised that I just needed to change ''position: absolute;'' to ''position: fixed;''\\
 +__**end humiliation**__//
 +-----
 +
 +==== support in Jack Jackrum ====
 +
 +Does this still work in JJ?
 +I get errors in the logs (reported [[https://forum.dokuwiki.org/d/21176-error-message/2|here]])
 +
 +Thanks :)
 +
 +-a-
tips/topbar.1426982414.txt.gz · Last modified: 2015-03-22 01:00 by ach

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki