Support » Plugin: Ultimate FAQ » Changing Anchor Points?

  • tindival

    (@tindival)


    Is there a way to change where the anchor points or add some type of padding/margin.

    As it is the site I have has a static menu bar across the top and when you click on a question to expand the answer the faq jumps up to that anchor point cutting off the heading.

    Also the back to top anchor jumps back up to top however the top anchor point is tied to the expand all button and not the search area above … is there a way to have it jump above the search bar?

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor EtoileWebDesign

    (@etoilewebdesign)

    Hi tindival,

    The FAQ reveal effect shows the expected behavior and scrolls to the FAQ when the expand button is clicked to reveal it. The “Back to top” button seems to be not working correctly due to the menu bar, but you would be able to fix that by making a few changes to the “/ultimate-faqs/js/ewd-ufaq-js.js” file. You could either change the div id to which the view should scroll to once “Back to top” is clicked or you could change the offset value to achieve the same results.

    
    jQuery('html, body').animate({scrollTop: jQuery("#ufaq-faq-list").offset().top -80}, 100);
    

    In the above line from the file “/ultimate-faqs/js/ewd-ufaq-js.js”, you could replace the “#ufaq-faq-list” to the div id to which view should scroll to once “Back to top” is clicked.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.