This forum is for assistance with theme development.

How to display get the html rendered primary links in something else than an unumbered list ?

I am working on the portage of Andreas07 template in something which is suiting my needs.
Especially, in the left column, the vertical space between the primary links is too large and the problem comes from the fact that those links are rendered in an unumbered list.

By using static html the problem is solved at rendering this by rendering links displayed in block in place of inline without including them in any list. That's fine and this is what I want.

Thus In my page.tpl.php I have to do something with :

<?php if (isset($primary_links)) { ?>
         <?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?>
<?php } ?>

This is saying me that I could modify the function theme_links in the the theme.inc file.
This is not what is right to do I guess. It would be better to create a function theme_links2 in my theme folder but I don't how to set this up.
I saw how to override, but how to add isn't explained or should I simply add theme_links in the theme.inc file ?

How to move left margin in leaf

Hi
Can anybody help me explain how to remove the left bullet margin in the leaf theme.
I have succelfully removed the default bullets/images, by following css

li.leaf {
list-style-image: none;
list-style-type: none;
background: url("plus.gif") no-repeat left top;
background-position: 0 .2em;
padding-left: 1.5em;

However the empty space from the bullets are still standing there??? and I cant remove it.
Now I have an emty left margin, then my plus.gif and then my tekst/link.

How do I get rid og this left margin?

› used in Garlands template.php as breadcrumb separator ... where is it handled by your template engine?

I'm customizing the breadcrumb for my theme so I stumpled over this. My UTF8 editor shows ›. This character works well with str_replace, but can you tell me where you've got this character from (looks better then e.g. &gt;)? Is there a library available? And how is it parsed by php?

Why do so many Drupal themes use px-based font sizes?

This is something that I've noticed while I was opening up all the various theme template files I could find in my themes directory (I'm trying to figure out how Drupal themes hang together so I can eventually create my own). When defining fonts in the various stylesheets, nine times out of ten the creator opts to use px as the basic unit of font size.

Is there a reason why px is preferable to pt? I always thought that if you used px, it made it more difficult for a visitor to use the settings to scale the font to whatever was most comfortable for him or her.

Just askin'.

Newbie has questions

Hello,

I have been using Drupal for a couple of weeks. Is it ok if i use a customised theme on my website. I have editied the Breeze theme to suit my site a little better. Am i breaking and rules/permissions by doing this?

Site: www.gamerfallout.com

Add target attribute to form

Hi,

I'm trying to adding a target="_top" attribute to a form using Drupals form API. Intention is to break out of a iframe (greybox), but can't figure out just how. Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Theme development