Articles on: Developers

FIlter Hook: Scroll to Top

Zakra provides you two filter hooks regarding scroll to top. They are zakra_scroll_to_top_icon_class
and zakra_scroll_to_top_icon.

You can add your CSS class into scroll to top icon using zakra_scroll_to_top_icon_class filter. To change the default icon of the scroll to top you can use zakra_scroll_to_top_icon filter.

Example: To change the Scroll To Top icon using FIlter Hook.

To know how to use a hook, refer to this: How to use Hooks in Zakra Theme?

Updated on: 13/09/2019

Was this article helpful?

Share your feedback


Thank you!