Hi everyone
I have a weird issue with back to top element, i hope someone can help.
I added it and it moves up and down in builder like it should, but not on front end, it’s always stuck in the footer (i have the element in footer template)
I tried to upload a video, but it says not allowed
position: fixed should be outside the wrapper – Since the content has a CSS transform applied, browsers create a new containing block. That means position: fixed elements will be fixed relative to the transformed content, not the viewport. This isn’t a bug — it’s just how CSS and browsers work.
To fix this, you can either append the back-to-top button using JavaScript, or insert it directly into the <body> using the bricks_body action hook in WordPress.
Example using PHP:
/* Back to Top Button */
add_action('bricks_body', function() {
?>
<button id="brxe-bqgihz" class="brxe-back-to-top visible">
<i id="brxe-xcvaif" class="ion-ios-arrow-round-up brxe-icon"></i>
</button>
<?php
});