Archived topic
add filter does not work
3 replies · Started by Farokh on April 19, 2017
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?
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.
theme function worked
Thanks
It's probably best to add it using this method: https://docs.generatepress.com/article/adding-php/#code-snippets