History: hidable_top_navbar_inst_page_19
Source of version: 5 (current)
Copy to clipboard
! Instructions This profile makes minor changes to your site layout and hides the top module zone when you scroll down the page. !! Changes made by this profile Site layout (in __Control Panels > Look and Feel > General layout > Site layout__) will be set to -+Classic Bootstrap (fixed top navbar)+-. Preference Site logo (feature_sitelogo) will be disabled so that logos and site title are not shown twice. After scrolling down a bit, the fixed top bar will disappear and the topbar zone (if any) will become sticky. This is made through the addition of a module with some JavaScript. This profile is best demonstrated after applying the -+Collaborative Community+- profile which includes site title and topbar module with menus or you can see it applied as an example on the official documentation site too: https://doc.tiki.org !! Further changes needed You also need to add this pice of css code to the __[tiki-admin.php?page=look|Control Panels > Theme (Look and Feel)] > Customization > Custom codes > Customized css__: {CODE(colors="css" ln="1")} /* Prevent target anchors from being covered by fixed top navbar */ h1:target::before, h2:target::before, h3:target::before, h4:target::before, h5:target::before { content:""; display:block; height:122px; /* fixed header height*/ margin:-122px 0 0; /* negative fixed header height */ } {CODE} ~tc~::~/tc~ This type of css code is needed to get the links to sections to work properly and display the heading text in the page. Othewise, they get covered by the fixed top bar. !! Upgrading When there is a new version you can re-apply the profile but the older version's module must be unassigned manually to avoid having two clashing modules applied at the same time. !! Uninstall There is no uninstall feature for profiles. If you want to "uninstall" you can simply unassign the module and remove this instructions page. Also remember to switch back the site layout to whatever it was before (you can see the latest changes recorded in the Tiki logs). !! Screenshots __Changes in header section:__ {BOX()}::{img src="https://tiki.org/display1229" width="600" thumb="box"}:: ::{img src="https://tiki.org/display1220" width="600" thumb="box"}:: ::{img src="https://tiki.org/display1218" width="600" thumb="box"}:: ::{img src="https://tiki.org/display1219" width="600" thumb="box"}::{BOX} Full view of page changes: {BOX()}::{img src="https://tiki.org/display1230" width="600" thumb="box"}::{BOX} {BOX()}::{img src="https://tiki.org/display1223" width="600" thumb="box"}::{BOX} {BOX()}::{img src="https://tiki.org/display1222" width="600" thumb="box"}::{BOX} {BOX()}::{img src="https://tiki.org/display1221" width="600" thumb="box"}::{BOX}