Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @raidje,

    You are using the child theme on your website. If you added any custom PHP code, that would prevent the menu from rendering.

    To check the child theme, please follow the steps below, recheck your issue, and let us know the results.

    Troubleshooting child theme:
    1- Remove all customization on the child theme.
    2- add your customization one by one to the child theme.
    3- After adding each customization code, check your issue

    Note 1: in the staging website, if you have a cache plugin or server cache. You need to clear its cache contents or disable them.

    Note 2: Before it, please get a full backup from your website.

    For more troubleshooting, please do the following steps and let me know the results:

    0. Enable the primary theme(if you are using a child theme).
    1. Head over to WP Dashboard > Plugin.
    2. Deactivate all plugins.
    3. Then, first, activate the Ocean Extra plugin.
    4. Check your issue.
    5. Then, activate your plugins one by one
    6. After activation of any plugins, check your issue

    I hope it helps,
    Best Regards

    Thread Starter raidje

    (@raidje)

    Hello Shahin,

    thank you for you’re answer, you’re right the issue comes from a custom php code in functions.php…

    in fact in this code i modify the query of posts for a specific category to reorder them using a custom field (ACF) ….it works but it breaks the menu….

    the code :

    function my_pre_get_posts( $query ) {
    // only modify queries for category ‘artiste’
    if(is_category( ‘artiste’ )) {
    $query->set(‘orderby’, ‘meta_value’);
    $query->set(‘meta_key’, ‘nom_artiste’);
    $query->set(‘order’, ‘ASC’);
    }
    // return
    return $query;
    }
    add_action(‘pre_get_posts’, ‘my_pre_get_posts’);

    Hello @raidje,

    I’m glad you found the issue.
    Since it’s a customization code, you should edit it. Perhaps you could set an “IF” to avoid the effect on the menu or use an alternative action(s).

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fullscreen menu empty in one category’ is closed to new replies.