Can someone tell me how to go about adding a divider line or border in between posts? And since we're on the topic, anyone know how to make the posts collapsible? Is there a module for this? I can't find it anywhere. Much thanks!

Comments

seaneffel’s picture

Anything to do with the presentation layer of your site is handled in the files of the theme you have chosen.

I don't know how much you know about Drupal theming, but here is where I would start:

  • Figure out what theme you are using, you can learn that from your theme admin area. The files to edit are on your server with the rest of your Drupal files. Stock themes for Drupal are installed in the directory at yourwebroot/themes/yourchosentheme and contributed themes are recommended to install at yourwebroot/sites/all/themes/yourchosentheme.
  • In your file system, find your theme's node template file (node.tpl.php).
  • At the bottom of that template, insert your favorite HTML tags to create a horizontal rule.
  • For good measure, rebuild your theme registry by visiting your theme admin page.
  • Noodle with the styles.css file values until you get the results you want.
  • Sit back and enjoy dividers between your nodes.

There are bunches of other ways to do this, like adding border css values on the DIV that surrounds each node.

goodtimes247’s picture

Thanks seaneffel. I'm new to drupal, what editors and tools do most people use to modify their site? dreamweaver? jedit?

seaneffel’s picture

I use just a free FTP application and a free text editor application to edit my themes. We're just talking about editing the content of text files so even something as simple as the PC's Notepad will do. Professionals use all sorts of tools, I've even heard of Dreamweaver doing an OK job if you configure it well.

dReypal’s picture

Any ideas on a code that would display the dividers EXCEPT the last for the last post?

seaneffel’s picture

The way to add visual elements to your Drupal pages is through the theme layer, and that still requires changes to your theme's template files or your theme's CSS.

You can simplify the task if you use an application like Firebug for Firefox. It will help you find the DIV tags that enclose the elements on your pages, then show you the line in your CSS file to edit to make your changes.

The next step down from that is to whole hog replace your theme with one you like better.