How to Update the "Scroll To Top" Icon

The astra_scroll_top_icon filter allows to update the Scroll To Top icon class.


// Filter callback function
function example_callback(  ) {
    // Process you code here
    return $classes;
add_filter( 'astra_scroll_top_icon', 'example_callback', 10 );


 * Add custom class to Scroll To Top
 * @return string $classes
function astra_scroll_top_icon_callback() {
    $classes = 'fa fa-angle-double-up'; // 'fa fa-angle-double-up' replace with your class
    return $classes;
add_filter( 'astra_scroll_top_icon', 'astra_scroll_top_icon_callback', 10 );

Note: To use ‘fa fa-angle-double-up’ class you need to enqueue Font Awesome to your theme.