Support » Theme: Travelify » menu broken when doing child theme

  • Resolved melka34

    (@melka34)


    Hello everybody !
    i m making a new child theme and the parent is travelify
    So, i m creating a new css files with the lines :

    /*
    Theme Name: pac
    Author: Grégory Molette
    Template: travelify
    Author URI: http://monsiteweb.com
    Description: Notre premier thème WordPress !
    */

    @import url(“../travelify/style.css”);
    @import url(“../travelify/rtl.css”);

    The problem is when i activate the theme the menu bar is broken, there is no more slide down menu, all the link of the menu appears in the menu.

    Do you know how to fix that ?

    Thank a lot !

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Andrew Nevins

    (@anevins)

    You’ll have to recreate your menu in Appearance > Menus setting of the dashboard.

    melka34

    (@melka34)

    Thanks for your help Andrew
    I enterelly re create the menu in menu setting but it s still the same :/
    Any other ideas ?

    Moderator Andrew Nevins

    (@anevins)

    What’s your site?

    melka34

    (@melka34)

    it s on local :/
    I use easyphp

    Moderator Andrew Nevins

    (@anevins)

    Check your browser’s console log to explore whether it’s telling you anything about this

    melka34

    (@melka34)

    Ok when i use back travelify theme the menu is now also broken.
    I m testing some ideas, thanks for your help Andrew.

    melka34

    (@melka34)

    Ok it works back, do you think the problem is coming from javascript ?

    Moderator Andrew Nevins

    (@anevins)

    The theme doesn’t use JavaScript for its dropdown menu but the console log can pick up more than JS errors

    melka34

    (@melka34)

    ok there is on error i copy paste to you because i don’t understand anything ^^

    Uncaught TypeError: Failed to execute ‘scroll’ on ‘Window’: 2 arguments required, but only 1 present.

    http://127.0.0.1/projects/CapEye/wp-content/themes/travelify/library/js/functions.min.js?ver=3.9.1

    Does it help ?

    melka34

    (@melka34)

    Humm even when i activate travelify and so the menu works there is also the same error.

    melka34

    (@melka34)

    When i created the child theme, i only created style.css.
    Do there is something else to import if i want the slide down menu to work?

    Theme Author Silkalns

    (@silkalns)

    Let’s start with small steps.

    Have you created your menu like this.

    First try to do it without Child Theme, just make sure that menu works and then proceed from there.

    That error can be ignored and it is not going to affect your website. This script is exclusively for mobile menu which is not a problem in your case.

    melka34

    (@melka34)

    Ok i see thank you Silains,
    i followed your tutorial and my menu works fine with travelify theme, but when i switch with another theme, all of my menu link appears and there is no more slide down menu…

    Theme Author Silkalns

    (@silkalns)

    When switching to another theme you have to enable (not create) manu again just like you have to do with widgets. For different themes you need to start customization from scratch.

    Hello !
    I put the website online, you can see the problem here.
    http://blog.supagro.inra.fr/capeye/

    The menu use only css ? There is no javascript used with ?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘menu broken when doing child theme’ is closed to new replies.