- This topic has 21 replies, 3 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
December 5, 2022 at 1:23 am #2449888
dasigna
hi there,
strange thing to be encountered lately…
to-top-button is activated within customizer (and for aeons) but currently not visible any more. strange enough it is there within the sites html as following:<a title="Nach oben scrollen" rel="nofollow" href="#" class="generate-back-to-top generate-back-to-top__show" style="opacity:0;visibility:hidden;" data-scroll-speed="400" data-start-scroll="300">i dont know what is injecting this code, exacly the style part that obviously prevents showing the button. if deactivating totop it is missing within code as expected. reactivating again – same thing.
functionality is there, but simply wont show up.tried hunting down possible glitches by deactivating plugins – no change.
no caching and no minifying going on staging site …glad for any hint how to possibly solve this!
thanks in advance for your efforts.
December 5, 2022 at 1:39 am #2449901Fernando Customer Support
Hi Dasigna,
The site is asking for credentials so we can view it. Can you share the credentials?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Can you disable all plugins temporarily as well while we check?
December 5, 2022 at 1:49 am #2449908dasigna
uuups – sorry. forgot about it.
credentials added. thanks.December 5, 2022 at 4:40 am #2450103dasigna
follow-up:
… tried again meanwhile – deaktivating ALL plugins changes nothing in regards of the totop-button.
same behaviour; being there but not showing up due to this nasty little inline css …December 5, 2022 at 5:00 am #2450130David
StaffCustomer SupportHi there,
if i check the DOMContentLoaded hook on that back to top button i can see several JS scripts that would affect it.
The only script that includes inlining those specific styles is theisotope.pkgd.min.jsWhich is loaded by
elementor-extrasplugin:../wp-content/plugins/elementor-extras/assets/lib/isotope/isotope.pkgd.min.js?ver=STAGING-3.0.4December 5, 2022 at 5:31 am #2450157dasigna
hi david,
thanks for looking – but:
cant quite follow where you see this script firing the inline css for totop … confused.nevertheless, disabling ALL plugins the issue still persits. although theres only one script loaded:
wp-content/themes/generatepress/assets/js/back-to-top.min.js?ver=STAGING-3.2.4nothing else.
same behaviour as before. so i dont think your approach leads to the issue sadly.
currently disabled everything, so you might have a look again by yourself?
thanks 🙂
December 5, 2022 at 8:10 am #2450448David
StaffCustomer SupportIs there any page caching on the server ? If so can that be cleared ?
December 5, 2022 at 8:50 am #2450512dasigna
currently plain staging server… no caching, no minifying, no plugins – no nothing.
just plain wordpress, content and gp (even no pro…).
December 5, 2022 at 8:52 am #2450513David
StaffCustomer SupportAny child theme ?
December 5, 2022 at 9:13 am #2450538dasigna
touché …
your’re by far smarter than i am 🙂
deactivated gp child – and this nasty little thing is there again.
must be this part of php for the custom totop-icon that caused the malfunction lately: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" rel="nofollow" href="#" class="generate-back-to-top" style="opacity:0;visibility:hidden;" data-scroll-speed="%2$s" data-start-scroll="%3$s"> <img src="...wp-content/uploads/div/totop-arrow.svg" alt="Back to top" /> <span class="screen-reader-text">%5$s</span> </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' ) ), __( 'Scroll back to top','generatepress' ) ); }so i assume we need a better piece of code for the custom icon … :/
December 5, 2022 at 9:15 am #2450540David
StaffCustomer SupportWhat was the original need for the
tu_custom_back_to_top_iconfunction ?December 5, 2022 at 9:15 am #2450541dasigna
… probably just leave out the ‘style’ part?
December 5, 2022 at 9:16 am #2450542dasigna
original need was just the custom svg-icon.
December 5, 2022 at 9:21 am #2450547David
StaffCustomer SupportAh ok, then yes, just delete:
style="opacity:0;visibility:hidden;"December 5, 2022 at 9:21 am #2450548dasigna
… just tested; works without the ‘style’ attributes.
must have had a reason they where there in the past, but better without now seemingly.or any better suggestion from your side?
edit:
you already confirmed. bits traveling too slow from one end of the world to the other, sometimes ;/ -
AuthorPosts
- You must be logged in to reply to this topic.