• Closed
  • andy whit
    Spectator
    March 8, 2016 at 8:37 pm #25181

    Hi

    I’ve been doing a bit of general debugging of my site to try and speed it up a little and noticed in Chrome debugger the two following errors keep appearing;

    /wp-content/themes/alora/admin/assets/css/mega-menu.css?ver=1.0 404 file not found.

    /wp-content/themes/alora/admin/assets/js/mega-menu.js?ver=1.0.0 404 file not found.

    i don’t have an alora/admin/assets folder.

    Any ideas?

    Denzel Chia
    Moderator
    Posts: 2656
    March 9, 2016 at 1:04 am #25206

    Hi,

    Are you using the latest Alora Theme version 2.7.7?

    Yes, you are correct, those files does not exist.
    But I am not seeing the same errors as you.
    I am using firebug on firefox.

    Thank you

    andy whit
    Spectator
    Posts: 4
    March 9, 2016 at 10:02 am #25225

    Yes, i’m using 2.7.7.

    Ive not tried firebug yet but something can’t be right if it’s missing the referenced files.

    the code is in Functions.php

    function alora_admin_scripts($hook) {
    if( is_admin() && $hook == 'nav-menus.php' ) {
    wp_enqueue_media();

    wp_register_style('alora_megamenu', get_bloginfo('template_directory') . '/css/megamenu.css');
    wp_enqueue_style('alora_megamenu');

    wp_register_script('alora_megamenu', get_bloginfo('template_directory') . '/js/megamenu.js');
    wp_enqueue_script('alora_megamenu');
    }
    }

    and get_bloginfo(‘template_directory’) in general-template.php looks like it returns null;

    i.e.

    `case ‘template_directory’:
    case ‘template_url’:
    $output =;`

    Denzel Chia
    Moderator
    Posts: 2656
    March 10, 2016 at 1:05 am #25239

    Hi,

    I don’t think there is general-template.php in Alora Theme.
    But the following code is wrong.

    wp_register_style('alora_megamenu', get_bloginfo('template_directory') . '/css/megamenu.css');

    It could be redundant code that needs to be removed or it’s referencing the wrong path.
    There is no megamenu.css within css folder.

    I will report this issue to my employer, Please wait for next theme update.

    Thank you