design

15

css help please

http://drupal.org

I have used below code in the body of my style.css to show image on the page background:

background: url(bg.gif) ;

but the problem is the (bg.gif) picture is repeating again in the page background(from middle of page).
(bg.gif is very tiny picture)

I have also used the

background: url(bg.gif) no-repeat;

but this case the bg.gif is not showing in the page background.

What I want it should not repeat again. Please help me.

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Adding classes and functions

http://drupal.org

Hello guys.

I'm starting to work on Drupal and I'd like to add some custom classes and function on a theme, by adding new .php files.

The problem is that I'm still not used with the .info file and I can't make it work... It works if on each page/story I use the include_once function, as in this exemple:

include_once("sites/all/themes/salamanderskins/Mailto.php");
$mailto = new Mailto();
$encrypted_link = $mailto->createLink('email@email.com','mail me');

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Need help on adding 728 ad to the top header region (outside theme regions)

http://drupal.org

Hi Guys,

This modification to my site has been long over due and I come to you in assistance.

(since I can't post a jpg on forum topic, please refer to this file: http://www.happygecko.net/site_code.jpg)

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

disable the default node page

http://drupal.org

I have been asked to removed the /node page from a Drupal site, and I honestly don't know how. Would I disable the page within a theme, or disable it in some kind of admin option? This should be a simple task, but I can't find info about it anywhere.

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Calendar Module's View Selection Links

http://drupal.org

Using Drupal 6.12, Calendar 6.x-2.1, Date 6.x-2.2, and Views 6.x-2.6.

I'm trying to style the calendar view toggle links at top of the Calendar View page (the Year, Month, Week, Day, Add + links). Currently, the code output is similar to this:

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Tip: Hide tabs with javascript for more accurate preview

http://drupal.org

Sometimes I get annoyed by having to log out to see what the page looks like without the editing-tabs (like when doing pixel-precise positioning). I just wanted to share this bit of code for adding a link for removing the tabs with a click while developing your theme. I'm working with Zen sub-theme and it requires jquery javascript library to be included.

Just add this
<a href="#" onclick="$('div.tabs').hide()" style="float:right; margin-top:-15px;"><?php print t('Hide'); ?></a>

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
13

How to put field descriptions above fields (below labels)

http://drupal.org

Found this http://drupal.org/node/337388 and a few other things here and there, but not how-to.
I'd like to put field descriptions above the fields. Though this also makes great sense from an accessibility standpoint, it is, IMO, also just the logical place for that sort of info to be... especially if you want to give users a paragraph of info pertaining to a field.
This is especially the case for us w/the registration form.

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Body field in themed node form?

http://drupal.org

In my template for a node form I have different form elements show up with such:

<?php
print drupal_render($form['title']);
?>

Which works.

however when I try:

<?php
print drupal_render($form['body']);
?>

for body, it doesn't seem to work.

Any ideas?

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Multiple Themes For Comments

http://drupal.org

Hi,

I am building a site that has multiple blog topics with comments on a secondary page. One of my blog topics needs to be themed differently, to do so I am using the "Themekey" and "Path Auto" modules. The problem that I am running into is that I cannot correctly set the theme to the comments in relationship to the topic since the comment URL output is “node/123/talk.”

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:
15

Register Multiple Themes in Template.php?

http://drupal.org

I must be an idiot,

but I have two node input types I'm trying to register. the code I'm using is below - whichever content type I put first works. How do I make them both work?

Read more »
Created by Dplanet 2 years 32 weeks ago – Made popular 2 years 32 weeks ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Recent comments