GeneratePress Footer: CSS and Code Snippets

If you want to disable the “scroll to top” feature on a specific page while keeping it functional on all other pages, this is the code snippet that you have to add to your functions.php file.

add_action( 'wp', function() {
if ( 'enable' === generate_get_option( 'back_to_top' ) && is_page(1431)) {
remove_action( 'generate_after_footer', 'generate_back_to_top' );
}
}, 20 );
Manuel Campos, English Professor

Manuel Campos

I am José Manuel. I am writing about things I know and things that I am learning about WordPress. I hope you find the content of this blog useful.

WP SURFER

home

about

privacy

contact

© 2024 WP SURFER • Made with Love in Costa Rica