Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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.

    #814428

    Hey 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,
    Sarah

    #814447

    Ah yes, sorry… Added link to the Private Content field.

    Thanks.

    #815612

    Hi,

    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,
    Basilis

    #815866

    Hi 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

    #815875

    Hi,

    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_Refresh

    Best regards,
    Yigit

    #815879

    It’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 JS

    #815974

    Hi,

    Have sure if this isn`t any plugin conflict – just disable all the plugins and check it again -.

    Best regards,
    John Torvik

    #815981

    Yes, tried that. Only have Yoast and Twitter running – deactivating both didn’t change the result

    #817147

    Hi 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,
    Victoria

    #817148

    Hi Victoria,

    Are they still visible on your mobile after you navigate using one of the options in the menu?

    #817478

    Hi b1000,

    Yes, they both remain. Which device are you trying it on?

    Best regards,
    Victoria

    #817727

    Greetings 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 support

    Best regards

    Gerhard

    P. S. see in private Content the website

    #817735

    Hi @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,
    Sarah

    #817739

    Hi Victoria,

    I’m on Chrome, on Android, Sony Xperia Z3 Compact

    Thanks

    #818349

    Hi b1000,

    Ok, I’ll ask my colleagues to check on an Android.

    Best regards,
    Victoria

    #818357

    OK, thanks

    #819769

    Hi,

    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,
    Ismael

    #819978

    This is not the problem. Please read my original post, or the follow up on July 3, 2017 at 1:38 pm

    #821344

    Hi b1000,

    Could you please update the theme and let us know if the issue persists.

    Best regards,
    Victoria

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.