GeneratePress Footer: CSS and Code Snippets

Published on July 4, 2023 | Updated on May 19, 2024

Disable the Scroll to Top Feature

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 );

Change The Copyright Message

This is the code snippet you need to change the footer copyright message when you don’t have GeneratePress Premium.

Add this snippet of code to your favorite code snippets plugin.

add_filter( 'generate_copyright','tu_custom_copyright' );
function tu_custom_copyright() {
    © 2022 - Your Custom Message
Manuel Campos

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.






© 2024 WP SURFER • Made with Love in Costa Rica