Site logo

Archived topic

add filter does not work

3 replies · Started by Farokh on April 19, 2017

Viewing posts 1–4 of 4

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

This archived topic is closed to new replies.