-
-
Save quasel/91fec81278ce71d934758f1e8f30702e to your computer and use it in GitHub Desktop.
Remove beaver builder's 'go to top' markup and modify it with my own.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Removes markup for built-in scroll to top link | |
* | |
* Renders scroll to top button for wp_footer. | |
* | |
*/ | |
add_action( 'wp_head', 'dgs_remove_go_to_top' ); | |
add_action( 'wp_footer', 'dgs_remove_go_to_top' ); | |
function dgs_remove_go_to_top(){ | |
remove_action( 'wp_footer', 'FLTheme::go_to_top' ); | |
echo '<a href="#" id="fl-to-top" style="text-indent:-9999px;"><i class="fa fa-chevron-up" style="text-indent:0;"></i>Scroll Back to the Top of This Page</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment