-
AuthorPosts
-
August 23, 2019 at 6:55 am #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.
August 23, 2019 at 10:21 am #1130274Hi 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,
NikkoAugust 23, 2019 at 11:38 am #1130298I 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?
August 24, 2019 at 4:05 am #1130521Hi,
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,
RikardAugust 24, 2019 at 6:22 am #1130549I 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:
August 25, 2019 at 4:40 am #1130676Hi,
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,
RikardAugust 25, 2019 at 6:05 am #1130709Yes, 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.
August 27, 2019 at 6:20 am #1131210Hi guttogjente,
I have commented out the code causing it in header.php (line 97-103).
Can you try to check again?Best regards,
NikkoAugust 27, 2019 at 7:41 am #1131240Thanks, 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.
August 27, 2019 at 12:34 pm #1131296Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.