This forum is for assistance with theme development.

Styling File Upload Input Box (v5.3)

Hi There,

I'm creating a Drupal theme from scratch and have been really impressed with how well it seems to work and how easy it is to make it work with my design so far.

I am now ensuring that the admin area works with the design before doing the final testing prior to putting it live and have run into a problem with the file uploads. I know from bitter experience that they are abominable to style, although they do usually manage to adhere to widths etc. Until I noticed that the HTML for the admin area generates the following HTML, which my CSS can't override:

Secondary menus appear then disappear!

Hello,

I am creating a theme based on an xhtml template.

I copied the xhtml into page.tpl.php and used bluemarine's page.tpl.php as a base from which to find the php code to place into my page.tpl.php to populate the content.

I have a problem with the menus......

I have the following menu structure:

Primary menus
A
B
C

Secondary menus
A.1, A.2, A.3
B.1, B.2, B.3
B.1, B.2, B.3

When I click on "A", secondary menus A.1, A.2, A.3 appear beautifully.
This works also with "B" and "C".

But when I click on one of the secondary menus, the secondary menu itself disappears!

The behaviour I would like is quite simple -

If I select "A", "A1", "A2" or "A3" that the whole secondary menu for "A" remains visible. Similar of course for "B" and "C". How can this be achieved.

It works for the bluemarine theme but stops working when the code is transferred across to the xhtml.

The only difference is the order that the lines

if (isset($secondary_links)) { print theme('links', $secondary_links, array('class' =>'links', 'id' => 'subnavlist')) }
if (isset($primary_links)) { print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) }

are in a different order in the new theme due to where the menus need to be output in the xhtml.

Does this make a difference?

how to make a frontpage?

i want to make a cunstomize frontpage. how to make it? first? second? third? i'm a learner for drupal.
to modify the theme of drupal that is not the same that other CMS. so i don't know what can i do.

Multiple css files and xhtml

Hello,

I am creating a theme based on an xhtml template.

I copied the xhtml into page.tpl.php and used bluemarine's page.tpl.php as a base from which to find the php code to place into my page.tpl.php and populate the theme with the drupal content. Being new to this I was impressed by how easy it was to get this working!

The problem is that the xhtml uses two style sheets - style.css and colour.css. Due to the way in which the styles are defined, merging these two sheets into one is almost impossible!

how to override the basic css elements that comes with drupal?

Hi,

I would like to override the basic css elements of drupal. Let's take the radio buttons. In the forms they show up like

<div class="form-item">
<label>Do you have any images?: </label>
<div class="form-radios">
<div class="form-item">
<label class="option"><input type="radio" name="images" value="0" class="form-radio" /> Yes</label>
</div>
<div class="form-item">
<label class="option"><input type="radio" name="images" value="1" checked="checked" class="form-radio" /> No</label>
</div>
</div>
</div>

The above code shows some of the div elements like <div class="form-radios">, <div class="form-item"> etc which shows up by default. I am trying override the above functionality like I don't want above div elements or I would like have a different class elements in the div elements than the default ones.

By verifying the code I came to know that the following function in includes/forms.php is responsibloe for radio boxes.

/**
* Format a radio button.
*
* @param $element
* An associative array containing the properties of the element.
* Properties used: required, return_value, value, attributes, title, description
* @return

adding level and number to ul in primary menu items

first post here, so any advice much appreciated.

i realise this relates to an old issue but i've searched through the forums and elsewhere an haven't been able to locate an answer to my particular problem.

i'm close to finalising a theme that requires me to be able to identify the level (in depth) and the number (sequentially) of each <ul> in my navigation list -- for design reasons each <ul> has to be unique. at the moment all <ul> classes are 'menu':

<ul class="menu">
<li>About me</li>
<li class="active">Work</a>
  <ul class="menu">
  <li class="active">Work Level 2
    <ul class="menu">
    <li class="active">1</li>
    <li>2</li>
    <li>3</li>
    </ul>
  </li>
  </ul>
<li>Clients</a>
  <ul class="menu">
  <li>Clients Level 2
    <ul class="menu">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    </ul>
  </li>
  </ul>
</ul>

what i would like to achieve is something like this (or really anything which would allow me to select each <ul> uniquely):

Pages

Subscribe with RSS Subscribe to RSS - Theme development