This forum is for assistance with theme development.

Providing theme options

I am designing a new theme for my website and am interested in contributing a generic version of it. It involves sytylized blocks with a variety of motifs and color schemes. I want to provide certain options to users of the theme. I currently have in the block.tpl.php file:

$columns = '1'; // 1 = right, 2 = left, 3 = both
$color = 'white'; //white, red, pink, etc.

Then I have logic that looks for these and adds the apprpriate class name in the HTML code. It's not a big deal for a user to open up the one file and change a couple values. Great...

How to kill pushbutton's button icons?

This is a specific question, but hopefully the answer will help me better understand how themes work...

I'm extending push_button...no reason, really, except it's what I started with when loading Drupal and now I'm experimenting....how do I get rid of those button icons (the square with slanted arrow) that appear in every subhead?

Want to see screenshot of editing content inline

I am in the process of evaluating Drupal as a solution for several of our corporate web sites. However, I have not yet had the time or mental power to get my brain around wrapping Drupal with our site template to see how content would be edited. The attempts I have made have resulted in wonky layouts of the admin areas of Drupal.

friends electric - columns in Opera, and center column width

Hi all,

I'm running drupal 4.74. The comments below refer to the friends electric theme, and its css.

First, I found on my site that Opera (9.10) would display the right hand blocks underneath the other columns. It may well have been something I did that broke this, but for the record you can fix it by changing margin-left of #sidebar-right from -201px to -202px.

<?php print $base_path ?> without print?

I'd like to switch a header image depending on the language and with a url and the base path. So, I'm using the code from here: Switching HTML based on active i18n language

So far, I have this, but the url results with two forward slashes before "isp":

How to Theme Views

I've had a bit of a search on this subject and what I've found seems to be either very out of date or didn't work.

I'm building a site that relies heavily on Views module. I want to be able to override the html the views generate using template.php and custom .tpl.php files on a per View basis.

Has anyone managed this in Drupal 5? If so would you be so kind as to post a step by step to achieving this?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development