[Resolved] add filter does not work

Home Forums Support add filter does not work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    GeneratePress 1.3.46
    GP Premium 1.2.96
    #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.

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    #307919
    Farokh

    theme function worked
    Thanks

    #307924
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.