Hello everyone: I need to change the look of certain pages, ie I have installed the organic group, and only I want to change the appearance of any content generated by this module with CSS. How can I differentiate them from other content? I know I have to change or rename the file page.tpl.php, but I do not know what I need to put as file name. I am a rookie in styles, forgive me. Thank you very much. I appreciate their support. Gustavo .-
On 12/09/2009 07:52 PM, Gustavo Cabral wrote:
Hello everyone: I need to change the look of certain pages, ie I have installed the organic group, and only I want to change the appearance of any content generated by this module with CSS. How can I differentiate them from other content?
You want to copy page.tpl.php to page-CONTENT_TYPE.tpl.php replacing the all caps with the system name of your content type that you would like to change (e.g. 'group'). Please read http://drupal.org/node/190815#template-suggestions for more information. -mf
On 12/9/2009 8:59 PM, Michael Favia wrote:
You want to copy page.tpl.php to page-CONTENT_TYPE.tpl.php replacing the all caps with the system name of your content type that you would like to change (e.g. 'group'). Please read http://drupal.org/node/190815#template-suggestions for more information. -mf
And as for the css, you'll notice if you look at the page source that the class name at the body level will have as one of the classes something like page-group, so make sure your css rules have (for example, with a <h1> that appears in a div id="content") .page-group #content h1, not just #content h1.
participants (3)
-
Gustavo Cabral -
Jeff Greenberg -
Michael Favia