• Resolved chetanhit

    (@chetanhit)


    Hi,
    I am getting a problem in this plugin, if you see the page “https://rajeshs17.sg-host.com/our-menu-sample-page/”
    whenever I click on menu let say for e.g. I click on “Starters”, the screen scroll to starters items but it hides the heading “Starters” as well as the first Item of the starters also. The automatic scrolling stops at second item of the starters, but it should stop on heading Starters

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    We could not find the given page, but we managed to check the menu page. It seems like the sticky navigation menu is very large in height and covers the part which you mentioned above.

    It;s just a simple js function which scrolls the section to top, but if any other sticky section is there just like your navigation menu, it will hide that part. You either have to disable sticky navigation for that page or manually increase the top offset value either by js or css. Hope this helps.

    Thanks &Regards,
    Team WP Scripts

    Hey,

    Is there some known ‘top offset’ css code I can use on my site? Got the same problem ?? First two category items are behind the navbar. Turning off the sticky header is no option because of the client requirements.

    Looking forward to hear from you!

    Thanks in advance.

    Plugin Author WP Scripts

    (@wpscripts)

    Hello @mediavi

    Using a filter you can add your correct offset value.

    function function_wfs_scroll_top_offset() {
    	return 100;
    }
    add_filter( 'wfs_scroll_top_offset', 'function_wfs_scroll_top_offset' );

    Please put this code in functions.php and adjust the value 100 as per your need. Hope this helps.

    Regards,
    Team WP Scripts

    @wpscripts
    Hey,

    Thank you very much for your answer!

    It works fine for the products and category titles, but it did not work for the categories sidebar on the left side.

    Overview:
    https://prnt.sc/12nm6hn

    When clicked on second category:
    https://prnt.sc/12nm8x2

    As shown when clicked on the second category ‘Warme broodjes’ the first category ‘Koude broodjes’ hides behind the navbar.

    Thanks again!

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    Please download this modified version.
    https://www.dropbox.com/s/3n7bd4p86yos6wg/food-store.zip?dl=0

    We will release all these changes with next version. Now after this version is installed, please add the following code in your theme functions.php just like previous code for category titles.

    function function_wfs_sidebar_top_offset() {
    	return 100;
    }
    add_filter( 'wfs_sidebar_top_offset', 'function_wfs_sidebar_top_offset' );

    You can modify the value 100 as per your requirement.

    Thanks & Regards,
    Team WP Scripts

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘top Menu Items Get hide when click on menu category’ is closed to new replies.