If you still have the problem I’ll just leave it here. May be some one else will need same help. Should be
function my_get_posts( $query ) {
if ( $query->is_main_query() and is_home() ) {
$query->set( 'post_type', array( 'post', 'someotherposttypes') );
}
return $query;
}
Instead of just
function my_get_posts( $query ) {
if ( is_home()){
$query->set( 'post_type', array( 'information','post') );
}
return $query;
}
If you want some explanations – pre_get_posts is called not only when loading the main query but when loading any of them and when nav menu is constructed your modifications for this exact query don’t have sense.