This Fix is a temporary fix for the "Global Footer jumps to top" right below the Header bug/issue. To have that bug temporarily fixed until the Brizy Team fixes it properly on their side, you may embed the code snippet in your Brizy Cloud Website under "Code Injection > Footer" or "Code Injection > Header
".
This Code Snippet adjusts the Footer position to be at the bottom, if you use 1 default Footer and actually want to have it positioned at the bottom.
<!-- FIX for Brz Footer Issue-->
<script>
var getBrzFooter = document.querySelector("footer.brz-footer");
var getBrzFooters = document.querySelectorAll("footer.brz-footer");
var getBrzSections = document.querySelectorAll("section.brz-section");
var getBrzLastSection = getBrzSections[getBrzSections.length - 1];
// Fn to reorder the Footer to the Bottom (FIX for Brz)
function fixBrzFooterBugTemp() {
// Declare a fragment:
var fragment = document.createDocumentFragment();
// Append desired element to the fragment:
fragment.appendChild(getBrzFooter);
// Append fragment to desired element:
getBrzLastSection.appendChild(fragment);
}
// Run FIX if 1 default Footer was found & LOG ?/?
if ((getBrzFooters.length = 1)) {
console.log("✔ only 1 Footer ?");
fixBrzFooterBugTemp();
} else if (getBrzFooters.length > 1) {
console.log("More than 1 Footer ?");
} else if (getBrzFooters.length < 1) {
console.log("No Footer found ?");
}
</script>
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.