• Resolved louisparkinson

    (@louisparkinson)


    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • stephencottontail

    (@stephencottontail)

    It looks like you’re using a child theme; have you modified footer.php in any way? There’s a JavaScript loaded in footer.php (through wp_footer()) that’s required to make the mobile menu work correctly.

    Thread Starter louisparkinson

    (@louisparkinson)

    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

    stephencottontail

    (@stephencottontail)

    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?

    Thread Starter louisparkinson

    (@louisparkinson)

    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

    stephencottontail

    (@stephencottontail)

    Check out this Pastebin: http://pastebin.com/tchGXc63 Copy the text from the paste to footer.php and you should be good to go.

    Thread Starter louisparkinson

    (@louisparkinson)

    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

    stephencottontail

    (@stephencottontail)

    .widget .search-form input {
    	width: auto;
    }
    Thread Starter louisparkinson

    (@louisparkinson)

    Brilliant, thanks again Stephen!

    All the best!

    Ben

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Menu breaks in mobile’ is closed to new replies.