Using another html.tpl.php for specific page I have googled this alot but none of the suggestions I found works for me.

I want to use another html.tpl.php template for a specific page, preferably matched with the url-string to that page, but the id works aswell.

This is the code I'm trying now (in template.php):

function mytheme_preprocess_html(&amp;$variables) {

    $nid = arg(1);

    if ($nid == '1715') {
        $vars['theme_hook_suggestions'][] = 'html__test';
        echo "testing testing";
    }
}


My custom template file is named: html--test.tpl.php.

The echo part does print on the page so the $nid is correct.

mytheme is not the actual name of my theme, but I replaced it here.
Note, there's already template suggestions for html.tpl.php generated by template_preprocess_html (see last lines in the function there)

For a specific node page, you can use html--node--1715.tpl.php where 1715 is the target node id.