Archived topic
Back to top arrow (since latest GP update)
18 replies · Started by Greg on October 13, 2020
Hi guys
The back to top arrow seems to now be pointing downwards instead of upwards since the most recent update, any idea how to fix?
Thanks
Greg
Hi there,
can you clear any cache plugins, and any Server Page Caching you have?
Hi David
Thanks for your quick reply, I've cleared the Autoptimize cache and still shows the same - the client is using Cloudflare, should I ask them to clear the cache for the domain there?
Thanks
Greg
If you could ask the client to clear the cloudflare/page caches. let us know.
Hi David
Client ran a full Cloudflare cache reset and both problems still persisting, thoughts appreciated...
Thanks
Greg
Very odd... can you try disabling the Back to Top button in Customizer > Layout > Footer. Publish those changes and then re-enable it ?
Hi David, gave that a go but comes back the same unfortunately...
Thanks
Greg
Hi there,
The class for the icon isn't correct on your site.
Are you using any custom functions/filters?
Hi Tom
Has the class changed? Just as I haven't change anything on the site/theme before the recent update.
Thanks
Greg
Ahh just deactivated a snippet I had to make the link a followed link and it's back to facing the correct direction! Any idea which part may have changed?
add_filter( 'generate_back_to_top_output', 'tu_custom_back_to_top_icon' );
function tu_custom_back_to_top_icon() {
printf(
'<a title="%1$s" href="#">
<span class="screen-reader-text">%5$s</span>
%6$s
</a>',
esc_attr__( 'Scroll back to top', 'generatepress' ),
absint( apply_filters( 'generate_back_to_top_scroll_speed', 400 ) ),
absint( apply_filters( 'generate_back_to_top_start_scroll', 300 ) ),
esc_attr( apply_filters( 'generate_back_to_top_icon', 'fa-angle-up' ) ),
esc_html__( 'Scroll back to top', 'generatepress' ),
generate_get_svg_icon( 'arrow' )
);
}
`
You want to change arrow to arrow-up: https://github.com/tomusborne/generatepress/blob/3.0.1/inc/structure/footer.php#L241
That should fix it :)
Awesome thanks Tom, that has indeed fixed it :)
Any ideas on the double arrows I'm getting on the WP Show Posts carousel, wondering if it's a similar issue?
add_filter( 'wpsp_carousel_args', function( $args ) {
$args['arrows'] = true;
return $args;
} );
Thanks
Greg
Check your Simple CSS for slick-related CSS: https://www.screencast.com/t/HmvQbFE9MkU
All sorted, thanks Tom - not quite as I had it before but that's down to my CSS!
Appreciate the quick help :)
No problem!