This forum is for assistance with theme development.

override menu displaying

Hello !!

First, sorry for my bad english, I'm french mothertongue...

My problem is the following : I work with a graphist who have created a design for my website.
In it design, menu and submenus are in separated blocks.
When you are on [menu] page, the menu is a simple text, else each menu is a href link.

When submenus for selected menu are displayed (and even a submenu is selected) the parent menu left a simple text.

I begin with drupal, and don't know which approach take to do it...

Please help--nice menus look/css

Please help! I have tried just about every css trick I can think of and can't get nicemenus to look how I want. The way it looks by default all the ul's/parent menu items are touching. I want to have them appear as separated boxes. I still want them next to each other (I use the horizontal view), but separated by a little space. I figured this must have to do with margins, but every margin I try appears inside the border and with the default background color. Any help/pointers will be greatly appreciated.

Howto do a theme with two columns story-teaser?

Hi to everyone.

Is there anyone who can tell me how to make an home page with a four column template, left column, right column and two central columns with teaser content.

Normal drupal sites has only one central column. I got frontpage and views modules (4.7) and built up a table with two column in the center (in main content div). How can I tell the theme to put some recent story in the first column and others in the second one?

Is there any other theme developed like that?

I also need to put in some images in the teasers. Any idea?

Thank you

Using images in place of block titles for some (not all) blocks

I fear I have bitten off more than I can chew....

I'm trying to design a theme that uses small banner-like images in place of the usual text titles for (some) blocks that appear in my right sidebar. The catch is I do want some of the titles to be text and I only want these banners to appear only in the right sidebar. How would I go about doing this? I've just been using the default block.tpl.php and I haven't seen anyone attempt something like this with Drupal before.

Convert Garland to 4.7

For all of us who want the great new theme on a production system, here is a quick how-to:

  1. Download the 5.0 beta 1
  2. Copy the folder "garland" from themes to your themes directory of your current drupal 4.7 installation
  3. Disable color module (see snippet 1)
  4. Adapt primary-menu handling (see snippet 2)
  5. Copy block clearing to style.css (see snippet 3)

Snippet 1
Open template.php and comment out line 66 to 68:

65    // Hook into color.module
66/*    if (module_exists('color')) {
67      return _color_page_alter($vars);
68    } */
69  }

Snippet 2
Open page.tpl.php and alter line 46 to 48:

    <?php if (is_array($primary_links)) : ?>
    <ul class="links primary-links">                                 
      <?php foreach ($primary_links as $link): ?>
      <li><?php print t($link)?></li>
      <?php endforeach; //print_r($primary_links)?>
    </ul>
    <?php endif; ?>

Snippet 3
Open style.css and add after line 9:

/*
** Markup free clearing
** Details: http://www.positioniseverything.net/easyclearing.html
*/
.clear-block:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

.clear-block {
display: inline-block;
}

/* Hides from IE-mac \*/
* html .clear-block {

Pages

Subscribe with RSS Subscribe to RSS - Theme development