-
AuthorPosts
-
June 28, 2017 at 10:32 pm #814132
Hi there,
I have a site that needs either a sticky header or a ‘back to top’ button on mobile. I’ve tried both using quick CSS solutions I’ve found elsewhere on this forum. However, both the menu icon and the ‘back to top’ button disappear after clicking a link from the menu. The site is just a single page site using anchor tags. Is there some JS that sets display to none? Is there a way round it?
Thanks.
June 29, 2017 at 1:20 pm #814428Hey b1000,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
SarahJune 29, 2017 at 1:32 pm #814447Ah yes, sorry… Added link to the Private Content field.
Thanks.
July 2, 2017 at 9:42 pm #815612Hi,
Which code have you tried?
Please give us as many details as possible, so we can be able to help you out, or share for us backend access.Best regards,
BasilisJuly 3, 2017 at 1:06 pm #815866Hi Basilis,
These are the quick CSS codes:
/* sticky header on mobile */
.html_header_top.html_header_sticky #header {
position: fixed !important;
display: block;
}/* Back to Top on mobile */
@media only screen and (max-width: 767px) {
.responsive #scroll-top-link {
display: block !important;
}
}Backend login below…
Thanks
July 3, 2017 at 1:20 pm #815875Hi,
Scroll to top button shows up fine on my end on mobile.
Please flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_RefreshBest regards,
YigitJuly 3, 2017 at 1:38 pm #815879It’s not that they don’t show up, they do… the problem is that they disappear after you open the menu.
So if you tap the menu then select one of the menu items (e.g. Pricing), the browser scrolls to the relevant anchor but both the menu icon and back to top button are no longer visible. Both reappear once the page has been refreshed.
You can see the menu icon disappear immediately after you tap it, as if it’s being set to
display: none;
by some JSJuly 3, 2017 at 5:26 pm #815974Hi,
Have sure if this isn`t any plugin conflict – just disable all the plugins and check it again -.
Best regards,
John TorvikJuly 3, 2017 at 5:53 pm #815981Yes, tried that. Only have Yoast and Twitter running – deactivating both didn’t change the result
July 6, 2017 at 11:18 am #817147Hi b1000,
I checked on my mobile, I see both: the sticky header and the button. I think, you should either remove the button or make it smaller and more to the right. Clear the cache on your device or try on another device and see if those things are working.
Best regards,
VictoriaJuly 6, 2017 at 11:22 am #817148Hi Victoria,
Are they still visible on your mobile after you navigate using one of the options in the menu?
July 6, 2017 at 7:51 pm #817478Hi b1000,
Yes, they both remain. Which device are you trying it on?
Best regards,
VictoriaJuly 7, 2017 at 10:32 am #817727Greetings from Vienna!
I do have a slight problem with ENFOLD. The jumps to the anchor tags works all fine.
BUT: when I press the “scroll back button” of the theme at the bottom right, it does not take me to the page start, but somewhere into the body.
Do I have to define “top of the page”?
Thanks in Advance for your supportBest regards
Gerhard
P. S. see in private Content the website
July 7, 2017 at 10:43 am #817735Hi @samurai_666,
We’ll do our best to help you, but can you open a new thread? This way, we can help you individually. Also, the private data you post here will also be visible to the creator of this thread. If you create a new thread/topic, only the staff will see it. Thank you!
Best regards,
SarahJuly 7, 2017 at 10:48 am #817739Hi Victoria,
I’m on Chrome, on Android, Sony Xperia Z3 Compact
Thanks
July 9, 2017 at 8:53 am #818349Hi b1000,
Ok, I’ll ask my colleagues to check on an Android.
Best regards,
VictoriaJuly 9, 2017 at 10:41 am #818357OK, thanks
July 12, 2017 at 4:49 am #819769Hi,
The “back to top” button is hidden on mobile devices by default because tapping at the top edge of the screen will take you back at the top of the page. Anyway, if you want to enable the button, please add the following css code.
@media only screen and (max-width: 989px) { .responsive #scroll-top-link { display: block !important; } }
Best regards,
IsmaelJuly 12, 2017 at 1:04 pm #819978This is not the problem. Please read my original post, or the follow up on July 3, 2017 at 1:38 pm
July 14, 2017 at 6:28 pm #821344Hi b1000,
Could you please update the theme and let us know if the issue persists.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.