How to change theme for specific page in drupal?

    We can change drupal theme for specific page using following function in module
    <?php
    function <modulename>_init() {
      global
    $custom_theme;
       if (
    arg(0) == '<argument1>' && arg(1) == '<argument2>') {
       
    $custom_theme = variable_get('theme_default', '0');
       
    init_theme();
      }
    }
    ?>
    where => Name of module => First argument, => Second argument. *You can add these conditions as per your requirement.
    5
    Average: 5 (1 vote)