
This is not a Beans question. There are plenty of how to's on back to top buttons.

Hi Alex,
Here is a snippet that does what you are after:
add_action( 'beans_uikit_enqueue_scripts', 'example_enqueue_uikit_assets' );
/**
* Enqueue UIkit assets.
*/
function example_enqueue_uikit_assets() {
beans_uikit_enqueue_components( array( 'smooth-scroll', 'scrollspy' ) );
beans_uikit_enqueue_components( array( 'sticky' ), 'add-ons' );
}
add_action( 'beans_header_before_markup', 'example_scroll_top' );
/**
* Example scroll up button.
*/
function example_scroll_top() {
?>
<div data-uk-sticky="{top: -200, animation: 'uk-animation-fade'}">
<a href="#" class="uk-button" data-uk-smooth-scroll style="position: fixed; bottom: 10px; right: 10px;"><i class="uk-icon-arrow-up"></i></a>
</div>
<?php
}
Note that I added a bit of inline styling for the sake of the example but you may move it to your CSS/LESS file 😉
Happy coding,