Hello

I need to theme the page the webform displays I've created a page-webform.tpl.php node-webform.tpl.php plus the webform-form.tpl.php, the page page-webform.tpl.php comes with a specific css file that doesn't show up when clearin the cache in performance settings

thanks for takin time to reply

Comments

quicksketch’s picture

There is no page-webform.tpl.php. If you want to add a CSS file to a particular Webform, you can use the drupal_add_css() function inside of your node-webform.tpl.php or webform-form.tpl.php.

lan5’s picture

but since webform is defined as content type, i should be able to create a page template that contains the webform ( which is included in a node) , I'm interested to theme what is around the webforms not the webforms itself

thanks

vernond’s picture

Status: Active » Closed (fixed)

As you say, the forms are presented within the content area (or within a block) so you already know where to apply theming for the area around the Webform. @quicksketch has given you a way to achieve this only on nodes that include a Webform.