Menu breaks in mobile
-
Hi WordPress Support,
My main menu won’t work on a mobile, but it does work on a desktop.
When the window is narrowed, the menu can’t be expanded by clicking it.
I’m running a child theme of TwentyThirteen.
Here is a link to my site: staging.louisparkinsonclimbing.co.uk
If anyone can help I’d be truly grateful.
Thanks,
Ben
-
It looks like you’re using a child theme; have you modified
footer.php
in any way? There’s a JavaScript loaded infooter.php
(throughwp_footer()
) that’s required to make the mobile menu work correctly.Hi Stephen,
Thanks for the reply.
I haven’t modified the footer.php file personally, are you suggesting I try changing it in some way?
Thanks,
Ben
Oh, I just noticed that you actually aren’t using a child theme. Is there a
footer.php
in your theme’s folder? Has that file been modified in any way?Hi Stephen,
I’ve just opened the footer.php file in the theme’s folder and it appears to be empty. Should there be something there? And if so what would you suggest adding to it?
Thanks,
Ben
Check out this Pastebin: http://pastebin.com/tchGXc63 Copy the text from the paste to
footer.php
and you should be good to go.Stephen you are an absolute genius! Thank you so much!
One last thing sorry – the new search bar that’s now been created in the footer stretches over onto where it shows ‘recent posts’ – would you by any chance know how to make the search bar smaller?
Thanks again, much appreciated, is it possible on the wordpress forum to give you a like or an up-vote or something for helping me?
Best,
Ben
.widget .search-form input { width: auto; }
Brilliant, thanks again Stephen!
All the best!
Ben
- The topic ‘Menu breaks in mobile’ is closed to new replies.