Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1130220

    The menu does not appear right on my webpage on cellphone (see screenshot). Would be grateful it you could help me fix it. I have given you login details in the private content.

    #1130274

    Hi guttogjente,

    I think you have some customized code that appends form to the main menu, please refer to the screenshot in private content.
    Once it’s removed it should also be fixed.

    Best regards,
    Nikko

    #1130298

    I could not find that custom code in the functions.php or the header.php, which was the places I supposed it could be in the child theme. I see that this extra search field does not show up on computer, even if I make the browser width small. Could it possibly be caused by a plugin?

    #1130521

    Hi,

    Thanks for the update, though I can’t reproduce what’s in your screenshot on your actual site. Did you try clearing your browser cache and reload the page? Also please try checking in an incognito window.

    Best regards,
    Rikard

    #1130549

    I have cleared cache in WP Super cache and in Safari on my cellphone, but the problem is still there. I see that the menu displays differently on the other pages (except the frontpage where the extra search field is added). For the other pages, it is added “undefined”. See screenshots:
    3
    3

    #1130676

    Hi,

    I don’t have an iphone to test with so I could only check the mobile version on desktop Safari, but I still can’t reproduce it. Does this only happen on your actual mobile device or does it happen if you reduce the width of your desktop browser as well?

    Best regards,
    Rikard

    #1130709

    Yes, I have tested on real devices (different iPhones) in both Google Chrome and Safari. It does not happen when I reduce the width of the desktop browser in Chrome on Windows 10.

    #1131210

    Hi guttogjente,

    I have commented out the code causing it in header.php (line 97-103).
    Can you try to check again?

    Best regards,
    Nikko

    #1131240

    Thanks, Nikko! You are awesome! Appreciate a lot:) That solved it! However, when I tested it now, I discovered that when I submit the form on the front page https://www.guttogjente.no/on cellphone the reply message from the form is not displayed like it should, instead the screen view is scrolled below this message so it is only visible if the user scroll up again. Do you know how to fix that? I can not ask the person who made the code, because the company changed. I see that the last lines of the script is:

    <?php if($_POST && $_POST['gform_submit'] == 1): ?>
            jQuery("html, body").animate({ scrollTop: 1100 }, "slow");
            <?php endif; ?>

    If I remove those lines, I need to scroll down below the header to display the reply on desktop, because the form returns me the top of the page.

    #1131296

    Hi guttogjente,

    Try to adjust scrollTop value from 1100 to something else, because that line of code just specifically means that if that if the form is submitted scroll to top by 1100px.

    Best regards,
    Nikko

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