Update: When I go to Appearance -> Menus -> Primary Nav Menu and uncheck the “Primary Menu (Current: Primary Nav)” box and re-check the box it seems to fix the website completely but then I hit save and it goes back to having the weird issues.
I do have custom functions for the menu
add_action('generate_inside_navigation','generate_add_custom_search');
function generate_add_custom_search()
{
echo '<div class="custom-search">';
get_search_form();
echo '</div>';
}
add_action( 'wp_enqueue_scripts', 'generate_dequeue_secondary_nav_mobile', 999 );
function generate_dequeue_secondary_nav_mobile() {
wp_dequeue_style( 'generate-secondary-nav-mobile' );
}
add_action( 'after_setup_theme', 'register_multiple_widget_areas' );
function register_multiple_widget_areas()
{
register_sidebar(
array(
'name' => 'Sidebar',
'id' => 'sidebar',
'description' => 'describe the function of the box.'
)
);
register_sidebar(
array(
'name' => 'News',
'id' => 'news-widget',
'description' => 'News Widget'
)
);
}
Thanks