Home › Forums › Support › Enable Back to top button on 1 page This topic has 9 replies, 3 voices, and was last updated 4 years, 5 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts July 20, 2019 at 5:22 am #962539 leekapa Hi, Can you please help me enable the back to top button to show on one page only, which will be my homepage. Thanks July 20, 2019 at 7:38 am #962617 TomLead Developer Lead Developer Hi there, Try this function: add_filter( 'option_generate_settings', function( $options ) { if ( ! is_front_page() ) { $options['back_to_top'] = ''; } return $options; } ); Let me know π July 21, 2019 at 4:38 am #963228 leekapa You Legend. Thanks heaps! July 21, 2019 at 9:02 am #963492 TomLead Developer Lead Developer You’re welcome π November 13, 2019 at 2:55 pm #1062419 leekapa Hey Tom, I only just noticed that this code stopped working on my front page which is still set as the same. I’m guessing that it stopped when gp updated. Any thoughts? Thanks, Lee November 13, 2019 at 4:48 pm #1062482 LeoStaff Customer Support Hmm the code should still work. Can you link us to the page in question? November 17, 2019 at 3:03 pm #1065864 leekapa https://mindless.life I also deactivated all plugins and still no luck. Plus I use a child theme, so the code wasn’t overwritten. Thanks November 17, 2019 at 3:41 pm #1065878 LeoStaff Customer Support Just to make sure, the option in the customizer is turned on here? https://docs.generatepress.com/article/back-to-top-button/ If so can you disable Autopimize for now? Thanks π November 17, 2019 at 4:04 pm #1065900 leekapa Sorry, I should have also checked that. It was disabled, but I don’t know why. In future, that’ll be the first thing I check. Thanks again. November 17, 2019 at 4:04 pm #1065901 LeoStaff Customer Support No problem π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In