Archived topic
Additional Button Above Back to top Button
27 replies · Started by Mr McMarry on November 15, 2018
Hey Developers:
I want a button above the back to top button with a href so when a user come to site so he can also click that button to directly scroll to download button and please lemme know that if the user scrolls down to download button and again clicks it so will it go back to download button or will be stay there (Bugged) ?
Regards
Edit: Please make sure this button don't show up in home page or pages or Error 404 Page or search page or in pagination pages only in post which has a download id :)
Hi there,
This might be a good start: https://generatepress.com/forums/topic/social-media-instagram-link-scroll-button-similar-to-gp-back-to-top-button/#post-530149
It worked which is pretty nice but umm where to put this code?
if(is_single() || is_home()){} for only post, not homepage or page or error page or any other page and can we put a little animation when it scrolls down ?
Sorry for asking this type of things.
Sorry for the if(is_single() || is_home()){} post only silly question used your new element feature and it worked but what for animation scroll animation. Dont like that direct hoop on download id.
Seriously TOM GP Got everything and I have to discover GP more! Damn how much I have to dig more
Achieved Everything Animation with smooth-scroll class and Single post thing with Element Feature
WOW Speach less
LOVE GP <3 Just drop a coffee for you guys or on-going development.
You guys worth it.
You guys Nailed it :).
David Leo Tom Looking forward to buy coffee more :P .
That's great to hear! Thank you :)
is this not working on mobile ?
Should I disable it for mobile? Working Again Btw i used in script in element feature and give nothing on priority and hook is wp_footer is this all of and yes on to work on post areas only too
You can if you want:
@media (max-width: 768px) {
.pp-backtopdownloadbtn {
display: none;
}
}
Tom idk why but when i make a change in CSS or u know added new script like this topic script it loads on the second visit of the webpage like I visit right it don't get change when I refresh and there it is working and all I search in GP Forums and Google is I got that clear the Autoptimize cache and GoDaddy cache too and when you visit my I don't loads completely there a white area in bottom area I know its because of Inline and Defer CSS in autoptimize and critical.css Should i disable it for making it smooth and not more jumping or is there any way and yes do i have to clear my browser cache to when i make change BTW i use incognito when i want to test something.
Deferring CSS and adding critical CSS can definitely cause issues like that, especially if the critical CSS is set up wrong and important CSS is being loaded in the footer.
Having to refresh to see changes does sound like caching. It could be as simple as browser caching, even though you're using incognito mode.
So what should i do ?
It may be something you need to live with if you want to continue deferring CSS.
No i dont want to live with that already disabled it and i suggest you to update this page : https://generatepress.com/fastest-wordpress-theme/ because there are new check box
I'll take a look at that today :)