Posted by wetwetwafu on July 27, 2010 at 3:37am
I'm new to drupal. Ive create a new theme. But it doesnt get my block.tpl.php, node.tpl.php and comment.tpl.php and also the box.tpl.php.
it still use the default layout with a < div class="node-" > which is not found in my .tpl.php files
and my style.css is not working properly..
do i need to do something so that my other .tpl.php will be included?
THanks.
Comments
what I know
is that you have to copy those files from an existing theme folder and put it inside your own theme folder. Those .tpl.php file that you mention.
What about your style.css is not working properly? Did you include it too to your theme folder as well as defining it inside your .info file?
the css files are in my theme
the css files are in my theme folder and also declared in my .info file.
"is that you have to copy those files from an existing theme folder and put it inside your own theme folder. Those .tpl.php file that you mention."i'll copy the .tpl.php file from existing theme folder like garland? but i just created my own and use the block and node variables on my layout.
and does my divs really need to be in this format :
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">Flush the theme cache?
Flush the theme cache?
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Nothing has changed
I always clear cache but nothing has changed.
Did you check
Did you check your page source code? If the css file you expect to be there is 'not' there, then you probably would like to check your .info file where you should define it. If it's there then it should be working. Unless there is something wrong on your css script were you might not be pointing to the correct element in which you want to apply your style?
The css file was included
The css file was included upon rendering but the page is not displayed with respect to my style.css
Then I guess
that there's something wrong with your css script? What's actually are the 'elements' that you wanted to style out? Are you sure that your style is pointing specifically to those elements?
i think its because my
i think its because my tpl.php files are not being read. only the page.tpl.php. that's why my style.css was not used properly..
why the blocks have < div class="node-"> which id not found in my block.tpl.php
are these default? and my style.css should be based from something?
Thanks for the reply sir.
How could you
How could you explain this by the way? that's what you said a while ago?
i checked the source view and
i checked the source view and i saw my style.css
and the background and header and other style appeared. but the main content and sidebars dont get the style in my style.css
I'm reading the "PRO Drupal Development Chapter 8" now. I hope this helps..