This forum is for assistance with theme development.

No effective selector for the login form labels, username and password

I have a re-skinned theme in which the navigation and user login information appears on a navy background. The entire sidebar has a navy background.

Everything that has a selector of h2 or li in that section appears with the correct font and color.

The exceptions are the labels for the form fields username and password. The labels appear as black on navy with a trailing red asterisk.

Coding issues...

I'm seeing code in my sleep these days and I need some help with this one.

I'm building a theme of the Foundation theme template but I'm doing some code modification as well as the CSS.

I'm trying to take this snippet of code from the page.tpl.php:

<?php if ($tabs): ?>
    <?php print $tabs; ?>
    <?php endif; ?>

and place it in the node.tpl.php file like so:

Making a VERY blan theme - and failing.

I'm basically trying to create a blog-type area of my plain ole HTML website that I'll use to update my family on stuff. I have a logo and graphical menu now, and want to add some of these rounded two-toned squares for the info I update. I could use some advice on how this would work. I've looked around in the handbooks, forums and Google, but I don't know the terminology. Someone please point me in the right direction, my brain is mush.

Forum Theme

I'm interested in making a theme just for the drupal forum. Is this possible, and how can I integrate it with a current theme?

Theming webforms - a how-to using two methods

I wrote this as I felt that the instructions for theming webforms was a little vague and confusing. It might just have been me, but maybe this will help someone else - I can't be the only confused person out there....can I? :) So here goes....

We can use theming to add CSS id's and classes to webforms. There are two methods available, each have their own advantages.

Method 1

Pros:
can create new fieldsets easily without re-doing the webform
can add any html code you before and after the fieldsets
Cons:
two files to edit

Add the following code to your template.php file to redirect processing to your own template file:

//change the number here '123' to the id number of your webform
function phptemplate_webform_form_123 ($form) {
  return _phptemplate_callback('webform_form_123', array('form' => $form));
}

Then create the file you mentioned in the callback statement above. In this case its called webform_form_123.tpl.php. Now you can create fieldsets and add your own CSS id's or classes to them, using the prefix and suffix attributes to add a new div (you can put anything you want here):

<?php
$form['submitted']['fluentin'] = array(
'#type' => 'fieldset',
'#prefix' => '

',
'#suffix' => '

',
'#weight' => -1,

I'm Panicing - What's happened to my collapsible admin menus

I'm really hoping someone can tell me where I've gone wrong.

I've been spending on my drupal theme and somewhere along the way, the collapsible menus in the Admin section have stopped working - e.g. the 'Input Format', 'File Attachements'... options in 'Create Content' no longer work. If I switch over to bluemarine theme, they work again, but what have I done to make them not work in my theme? I have no idea when this could have happened and to start over is not an option.

Pages

Subscribe with RSS Subscribe to RSS - Theme development