I think the best solution is to use frontpage nid
function YOURTHEME_preprocess_node ( &$vars ) { list(, $frontpage_nid) = explode('/', drupal_get_normal_path(variable_get('site_frontpage', 'node'))); if ($vars['node']->nid == $frontpage_nid) { $vars['theme_hook_suggestions'][] = "node__frontpage"; } }
Because
if ($vars["is_front"]) { $vars["theme_hook_suggestions"][] = "node__front"; }
add a theme suggestion for all nodes on the main page, and not just for the node main page
source share