Archived topic
to top button customization question - change icon
1 reply · Started by Axel on November 17, 2020
hi guys,
is there any convenient way to change the icon of the to top button?
currently icons are set to use svgs which is great and fast, but client complaints the totop arrow being too lean.
so searching for a way to set a custom one - possibly svg too - and replace the default one.
best practice advise appreciated , thanks in advance.
Hi,
You can use the generate_back_to_top_output filter to change the markup of the back to top button to add your custom SVG. https://docs.generatepress.com/article/generate_back_to_top_output/
Here are some related topics that tries to do the same:
https://generatepress.com/forums/topic/back-to-top-arrow-since-latest-gp-update-pointing-downwards/
https://generatepress.com/forums/topic/cannot-change-to-top-icon-with-either-css-or-function/ (if you're using fonts for icons)
https://generatepress.com/forums/topic/back-to-top-2/#post-334565
Perhaps checking on these may help.