Instructions
- Go to
/admin/extend/widgets
and locate the “Global Footer” widget
- At the very top of the existing code you have in that widget, add
<div id="console-nav-tab"><i class="fa-solid fa-angles-left"></i></div>
- Add this CSS
div#console-nav-tab {
position: fixed;
bottom: 0px;
z-index: 900;
height: 30px;
left: 0px;
}
div#console-nav-tab i {
font-size: 16px;
margin-left: 10px;
line-height: 2.0 !important;
}
.toBottom {
bottom: 0px !important;
}
Note, that you probably need to modify the existing CSS ID floatleft
to accommodate the additional DIV and icon. For example
#floatleft {
float: left;
padding-left: 30px; /*additional left padding to support additional DIV and icon */
font-size: 80%;
line-height: 2.0;
font-weight: 600;
display: flex;
}
- Go to
/admin/appearance/customise#custom-js
and add this block of code (bottom is fine, or wherever you want to place it)
$(document).ready(function() {
$(window).on('action:ajaxify.end', function(data) {
var getState = localStorage.getItem("footer");
if (getState === "hidden") {
$("#console-nav-footer").hide();
$("#console-nav-tab i").addClass("fa-solid fa-angles-right");
$('.pagination-block').addClass("toBottom");
} else {
$("#console-nav-tab i").addClass("fa-solid fa-angles-left");
$('.pagination-block').removeClass("toBottom");
}
$("#console-nav-tab").click(function() {
$("#console-nav-footer").toggle(250, function() {
if ($("#console-nav-footer").is(":hidden")) {
localStorage.setItem("footer", "hidden");
$("#console-nav-tab i").addClass("fa-solid fa-angles-right");
$('.pagination-block').addClass("toBottom");
} else {
localStorage.setItem("footer", "shown");
$("#console-nav-tab i").addClass("fa-solid fa-angles-left");
$('.pagination-block').removeClass("toBottom");
}
});
$("i", this).toggleClass("fa-solid fa-angles-left fa-solid fa-angles-right");
});
});
});
- Test, and make necessary modifications to suit your own environment