Hi, I'm new on Drupal (from Wordpress) so excuse me if this question is kind of dumb.

But I'm trying to edit <?php print $content; ?> so that I can wrap spans around the code for my posts title. Currently, I can only wrap the spans around <?php print $content; ?> and it formats the posts text, title, etc.

Thanks in advance

Comments

yelvington’s picture

In the context of page.tpl.php, $content comes from node.tpl.php. $title is the page title; $content is the prepared node, or in the case of a non-node (list) page, a whole bunch of nodes. Sounds like the latter is what you're into. Copy the default node.tpl.php into your theme, and modify it.

http://drupal.org/theme-guide/6

TooFatToFish’s picture

Thanks, bro

mcrittenden’s picture

Another option is the contemplate module which lets you have a lot more control over your markup, instead of just accepting whatever Drupal spits out.

- Mike, from Little Blue Labs and Drupal Check