Search code examples
drupaldrupal-7drupal-theming

Theming node add form


I want to theme this page node/add/classified. I tried creating page--node--add.tpl.php, page--classified--add.tpl.php, page--node--classified--add.tpl.php refreshing cache all the time...Nothing works

I tried also implementing hook_theme() and hook_preprocess_page().


Solution

  • If you want to create a tpl file for a particular content type as you mentioned in your post "node/add/classified", then I would suggest, you should go with the tpl name like this

    Drupal 6 : page-node-add-[content type].tpl.php

    Drupal 7 : page--node--add--[content type].tpl.php

    in your case, this would be (assuming your Drupal version is 7.x):

    page--node--add--classified.tpl.php

    Hope it will help you.