Hi, I have a pretty simple problem but can't figure it out. I just need to make the default font size of my block content smaller.

I've looked around and one option is to alter the php in the node.tpl.php file. Sounds good, but I don't know how to do this. What code do I enter in and where does it go? Also is there an easier i.e. newbie way of doing this?

This is my block.tpl.php code. I'm using the Nitobe theme.

/**
 * @file block.tpl.php
 * Block rendering for Nitobe.
 *
 * In addition to the standard variables Drupal makes available to node.tpl.php,
 * these variables are made available by the theme:
 *
 * - $nitobe_block_id - A complete unique ID for the block.
 * - $nitobe_block_class - The CSS classes to apply to the block. If the Block
 *          Class module is installed, those classes will be added to these.
 *
 * $Id: block.tpl.php,v 1.1.2.1 2009/08/01 17:58:31 shannonlucas Exp $
 */
print $nitobe_block_id; " class=" print $nitobe_block_class; ">
if (!empty($block->subject)):

print $block->subject

endif;
print $block->content


Comments

Jeff Burnz’s picture

You dont use PHP to change font sizes, you use CSS, something like this goes in your themes CSS file, such as style.css or other depending on the theme:

.block {
font-size: 95%;
}

Sounds like you need some basic tutorials, this is a good site for beginners: http://htmldog.com/

jaggga’s picture

Thank you!