Title: automatic scroll
Last modified: January 27, 2021

---

# automatic scroll

 *  Resolved [nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * (@nicoharmony)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/)
 * Hi, i just have a question,
 * I would like to be able to modify the scrolling area. because here, my menu goes
   in front of the categories,
 * When I click in a category, I would like the anchoring to be done on the name
   of the category (after my menu, currently, it goes below)
 * thank you in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautomatic-scroll-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-13965481)
 * Hello [@nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * Thank you for reaching out. As you have a sticky bar enabled, your category heading
   just getting hidden under that. I am going to provide a temporary solution for
   this,
 * Please edit the plugin via plugin editor or ftp, and go to food-store/assets/
   js/frontend/wfs.js and add “-100” at the end on line number 56.
 * [http://prntscr.com/xptzm6](http://prntscr.com/xptzm6)
 * On next version we’ll replace that 100 with a proper variable, so that it can
   be permanently fixed. After updating to latest version you are going to face 
   same issue again, so please remind us again here and we’ll provide you a permanent
   solution.
 * Thanks & Regards,
    Team WP Scripts
 *  Thread Starter [nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * (@nicoharmony)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-13965795)
 * Absolutly perfect ! thx you so much for your great work and reactivity !
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-13965842)
 * Thank you for your update.
 * Here is the function that you need to put in the functions.php of your currently
   active theme. This will make your site ready for future version of food store.
 *     ```
       function custom_offset_value( $offset ) {
       	return 100;
       }
       add_filter( 'wfs_scroll_top_offset', 'custom_offset_value',20 );
       ```
   
 * Please [review](https://wordpress.org/support/plugin/food-store/reviews/#new-post)
   the plugin if you like it and our support.
 * Thanks & Regards,
    Team WP Scripts
 *  Thread Starter [nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * (@nicoharmony)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14029438)
 * Hi, now, your plugin dont work.
 * [https://doron-restaurants.fr/livraison-et-emporte/](https://doron-restaurants.fr/livraison-et-emporte/)
 * New version ?
    my error is on wfs on 56
 * an idea ?
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14031145)
 * Hello [@nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * If you have update the plugin after our last conversation, please add the above
   code in the functions.php of your activated theme.
 * Also, clear the cache once and check the server cache in cPanel settings, those
   things also restrict functionalities in some scenarios.
 * Thanks & Regards,
    Team WP Scripts
 *  Thread Starter [nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * (@nicoharmony)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14034208)
 * The code in the function.php is interegrated.
    but dont work… :/
 * in my code 56 > 58 :
 *  scrollTop: $(“#” + category + “_start”).offset().top – 100 wfs_script.scroll_offset
   },
   350); });
 * thx per advance
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14034224)
 * [http://prntscr.com/z24yhu](http://prntscr.com/z24yhu)
 * Line should be this,
 * `scrollTop: $("#" + category + "_start").offset().top - wfs_script.scroll_offset`
 * regards,
    team wp scripts
 *  Thread Starter [nicoharmony](https://wordpress.org/support/users/nicoharmony/)
 * (@nicoharmony)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14034278)
 * Nop, doesnt work :/
 *  scrollTop: $(“#” + category + “_start”).offset().top – wfs_script.scroll_offset},
   350);
 * with and without }, 350);
 * Can you check on my website ?
    [https://doron-restaurants.fr/livraison-et-emporte/](https://doron-restaurants.fr/livraison-et-emporte/)
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14034305)
 * Updated. Please remove the logins or update the password.
 * Consider giving us a [review](https://wordpress.org/support/plugin/food-store/reviews/#new-post)
   if you like our plugin and support.
 * Thanks & Regards,
    Team WP Scripts

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘automatic scroll’ is closed to new replies.

 * ![](https://ps.w.org/food-store/assets/icon-256x256.png?rev=2323647)
 * [Food Store - Online Food Delivery & Pickup](https://wordpress.org/plugins/food-store/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/food-store/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/food-store/)
 * [Active Topics](https://wordpress.org/support/plugin/food-store/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/food-store/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/food-store/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/automatic-scroll-3/#post-14034305)
 * Status: resolved