Questions tagged [drupal-themes]

This tag is for questions about themes hosted on Drupal.org. Don't use it to generally mean "this question is about a theme," when the question is about a theme's code, or when the question is already using a specific tag, such as "theming," "theme-template," or a tag specific for the used theme, such as "zen."

A theme is a "skin" that lets you change the layout and appearance of a Drupal site quickly and without programming.

For questions about the Drupal theming system, use .

166 questions
21
votes
10 answers

How do I output a drupal image field?

It is quite possible that I'm just looking for help finding the name of a function that already exists within drupal (7) but sometimes the documentation is a bit difficult to navigate. Hopefully someone can help me. I have a node that has a custom…
Alex C
  • 16,624
  • 18
  • 66
  • 98
17
votes
1 answer

Drupal 7: Modifying menu HTML output?

I am trying to modify the HTML output in a Drupal 7 theme that I am creating. Basically, instead of the < li >s containing just plain < a >s with text, I want to include some additional HTML inside the < a >. I know that it's possible to modify the…
Donnie Thomas
  • 3,888
  • 8
  • 47
  • 70
9
votes
3 answers

How to get rid of Drupal CSS stylesheets?

I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies…
Massimo Cafaro
  • 25,429
  • 15
  • 79
  • 93
8
votes
3 answers

How Does Drupal 7 Render Out a Page?

How does Drupal 7 render out a page? What's its equivalent to an MVC's view system. When it comes to the rendering out the final HTML page for a request, most PHP frameworks (MVC based) I've worked with take an approach where a top-level…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
5
votes
7 answers

Can't get the search box to show up in custom theme

I'm trying to make a custom theme for a drupal blog, and I want the search box to appear in the header. To do that, I've put the following code in the page.tpl.php template file :*
5
votes
2 answers

Drupal theme code to work out if you are editing a node

Does anyone know the php code to check if you are in edit mode? I want to edit how my theme looks when in edit mode so need to work out if I am or not.
Linda
  • 2,227
  • 5
  • 30
  • 40
5
votes
1 answer

Converting HTML template to Drupal 7

I have a HTML theme. How to convert our HTML templates to Drupal 7 theme?
sjkon
  • 633
  • 2
  • 10
  • 24
4
votes
1 answer

How to make a Drupal 7 module use up a .tpl.php template in the theme folder

I have created a module for Drupal 7 which has a hook_theme function that tells it to use usertemp.tpl.php template. I have the template placed in the module folder as well as the theme folder. The problem is that the function is ONLY picking up the…
Carlos Muñiz
  • 1,858
  • 9
  • 25
  • 29
4
votes
1 answer

How do I create a page template?

So, I must be missing something. I want to create a specific template for a Basic Page with Drupal 7. I've read about doing something like creating a file called page—mypagename.tpl.php, and putting it in the theme folder but this has not worked…
a.m.
  • 2,108
  • 5
  • 24
  • 29
4
votes
6 answers

Drupal. Use AJAX to update view's content

I've created a view in Drupal that retrieves a list of nodes. The display of this view is a page and it works perfectly well. It does even allow me to filter its content by argument. See the current's view configuration (click to enlarge): I want…
ozke
  • 1,622
  • 4
  • 25
  • 44
4
votes
2 answers

Remove the red outline on form elements that fail validation in drupal

When a drupal form fails validation, it is redrawn with the elements that failed validation surrounded in a red border. Drupal does this by adding the error class to the input elements, and specifing a 2px red border on input.error elements in…
Rob Crowell
  • 1,447
  • 3
  • 15
  • 25
3
votes
2 answers

intermittent failure to render completely and ultimate unable to connect - City_Magazine Theme

I have a site where I'm using City Magazine Theme from ThemeForest / ThemesMania and the theme is failing (intermittently) to render completely and sometimes fails totally to connect. Great looking theme, but I must'a done something wrong here…
cfusch
  • 729
  • 4
  • 7
3
votes
1 answer

Drupal 7, how can you set a theme to a user?

In drupal 6 you could edit the user and it would give you the option to set the theme they use. This option does not appear to be available in Drupal 7. How else can one go about setting a theme on a per user basis?
Nadine
  • 777
  • 1
  • 11
  • 24
3
votes
1 answer

How does Drupal add module css files to the consolidated file when flushing my theme cache?

When I clear my theme registry Drupal runs off and builds out a nice consolidated css file, but it does this for different node/page types so that I get several instances of said file existing. I mentioned this in another question I asked (and…
Steve Perks
  • 5,490
  • 3
  • 28
  • 41
3
votes
3 answers

Drupal 7 hook_theme() not loading template file

I'm trying to get a very simple module to load a template file using drupal's hook_theme(). It's pretty much as simple as you can possibly imagine. function sectionheader_theme ( $existing, $type, $theme, $path ) { return array( …
Jape
  • 31
  • 1
  • 2
1
2 3
11 12