I am using GP and GPP. Prior to the Update to GP version 3.0.1, I was able to successfully run the following in my functions.php of my Child Theme in order to have Back To Top functionality on one page only. In the Customizer > Layout > Footer, Back To Top Button was Disabled. What has changed?
Code:
function ramona_add_back_to_top($options ) {
if ( is_page( ‘gallery’ ) ) {
$options[‘back_to_top’] = ‘enable’;
}
return $options;
}
add_filter( ‘option_generate_settings’,’ramona_add_back_to_top’ );