For assistance with theme development.

STICKY: Theme development forum guidelines

The theme development forum was created to aid those who are developing themes for Drupal. This forum is not for issues you may be having with contrib themes. Issues with contrib themes should be placed in the issue queue of the theme in question. Please respect this.

If you you have drupal installed already and are seeking a theme, have a question about a specific theme and what it does or if it will fit your use case, please place your questions in the Post installation forum.

Conditional statements for hiding empty fields in node templates?

I've been searching for an answer to this for a while now and I could use some help. I'm putting a theme together for D7 and I've got custom node templates adding custom fields into the page working. What I need to do is figure out a conditional statement that looks to see if the field is empty and then hide it ( and the divs around it ) if it is. Is there any easy way to write the PHP to accomplish this in a node template? Logically, I just want it to say

Template marketplace

Hello friends,

I would like to know what template to indicate me
a site type marketplace for drupal 7

Thanks for listening,

Views and taxonomy

Hi all,
I've been getting really happy with using Views when theming on Drupal.
I've spend all day trying to figure this out though:
I'd like my view (block) to show all 12 possible taxonomy terms in my vocabulary names 'months'.
the terms I have selected (say: jan, feb, march..) for my node should have a link in them to the term list of that particular month.
The output should be like this:

Add class bartik template

hello, I can not add the class to the block filter shown in the template Bartik, what is wrong?

function bartik_views_exposed_form_alter(&$form, $form_state) {
  // change date format example from a field called 'date_filter'
  $form['views_exposed_form']['#attributes']['class'][] = 'test';

Class CSS filters in exposed

Hello guys,

I can not find the solution to a problem on the filters exposed. I'm thematizing and I need to use a class within a specific type of filter exposed:


Subscribe with RSS Subscribe to RSS - Theme development