Closed (fixed)
Project:
Webform
Version:
6.x-3.9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2012 at 14:15 UTC
Updated:
10 Nov 2012 at 04:31 UTC
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
Comment #1
quicksketchThere 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.
Comment #2
lan5 commentedbut 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
Comment #3
vernond commentedAs 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.