Home › Forums › Support › add filter does not work This topic has 3 replies, 3 voices, and was last updated 7 years ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 19, 2017 at 11:49 am #307830 Farokh Hello, add_filter( ‘generate_back_to_top_start_scroll’, ‘tu_back_to_top_start_scroll’ ); function tu_back_to_top_start_scroll() { return 1000; } I used this filter in my style sheet and its not working! What am I missing? April 19, 2017 at 1:57 pm #307889 Jamal Hi Farokh Would you mind trying a lower number like 500 to see if it makes a difference? And please double check that you put that code in theme functions and not your style sheet. April 19, 2017 at 3:17 pm #307919 Farokh theme function worked Thanks April 19, 2017 at 3:30 pm #307924 LeoStaff Customer Support It’s probably best to add it using this method: https://docs.generatepress.com/article/adding-php/#code-snippets Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In