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
1
vote
1 answer

Drupal CSS files behaviour

we have to maintain a page which was built by another agency with drupal 8. Now we are facing some weird problems with their asset-management, especially the css files: Let's say, we have a theme-module called "my_theme". Now, when taking a look…
j0nnybrav0
  • 123
  • 2
  • 11
1
vote
2 answers

$variables Vs. $vars

What is the difference between function mythemes_preprocess_node(&$variables) { ... } and function mythemes_preprocess_node(&$vars) { ... } in drupal 7. and what is the difference between preprocess and process functions. thanks.
Questioner
  • 225
  • 4
  • 10
1
vote
1 answer

Way to replace field in views to image by hook instead of using template

Is there a way to replace the value in view of a field to image? i.e: value = 101, so display in hook / theme_() function instead of using a .tpl file?
amirash
  • 2,419
  • 5
  • 24
  • 26
1
vote
1 answer

How to change Drupal 7 theme while getting HTTP Error 500

This is with Drupal 7x. I loaded my theme on Drupal.  It has produced a HTTP ERROR 500.  That is all that appears on my browser window, that is.  Now I can not even get to the login pate to log on to the dashboard to fix this or even uninstall the…
xarzu
  • 8,657
  • 40
  • 108
  • 160
1
vote
2 answers

Custom Drupal theme template files not being used

I am trying to organize my theme folder, which has node theming overrides for dozens of views. Basically I have two different styles and I want them all to look the same, more or less. Is there a way in template.php that I can do this? And what is…
Pattie Reaves
  • 175
  • 1
  • 3
  • 11
1
vote
1 answer

drupal 7 custom content hook_theme output

I have a custom module created in Drupal 7 and I want it to display some HTML content. Here is how I have did. But it is not working, what I do wrong?
radu c
  • 4,138
  • 7
  • 30
  • 45
1
vote
1 answer

Drupal 8 custom module "theme hook not found"

I am building a custom module for Drupal 8.4.4 and is not detecting the hook_theme from a block. I get an error message saying "Theme hook gardentheme not found". If I uninstall the module and install it again, it works fine, but as soon as I clear…
VictorCL
  • 49
  • 1
  • 4
1
vote
3 answers

Drupal theme files outside of theme folder

Is there a place where I can place override theme files other than a theme's folder? For example, if I wanted to override the appearance of a view's row in the same style for more than one theme without having to use more than one file. If there…
knpwrs
  • 15,691
  • 12
  • 62
  • 103
1
vote
1 answer

Creating a new drupal theme

I know that the Zen starting theme is very popular but I find it harder to edit a theme made by someone else (even if it's as simple as Zen) that to create my own in static html. Is it ever a good idea to start with a static html design and then…
Radu
  • 8,561
  • 8
  • 55
  • 91
1
vote
1 answer

Drupal: Extract teaser in full view

How can I split the teaser from the rest of the content in the node.tpl.php to wrap the teaser text in special markup?
dantz
  • 1,842
  • 4
  • 21
  • 25
1
vote
3 answers

Drupal registered user page?

I have a drupal site that I am creating right now. I have 3 roles, and these are: Anonymous Authenticated Registered Users On my "Registered Users" I wanted to have a different theme after they login. Do you have ideas on how to achieve this? Best…
mr.b
  • 2,708
  • 8
  • 39
  • 64
1
vote
1 answer

Using a Drupal theme in a standalone PHP web application

We are using Drupal alongside several standalone PHP/MySQL web apps. Although they are external, we want them all to have the same appearance in terms of HTML layout and CSS. We basically just don't want to have to do separate design work for Drupal…
alexantd
  • 3,543
  • 3
  • 27
  • 41
1
vote
1 answer

jQuery and Bootstrap included by theme but cannot be used

I have a Drupal site with a purchased theme - see it here. The theme includes jQuery 2.x and Bootstrap in the section of the page, but trying to access the $variable gives Uncaught TypeError: $ is not a function
Erik Johnson
  • 858
  • 1
  • 7
  • 29
1
vote
3 answers

Drupal 6: Theme Developer gives too common candidate name, nothing specific

I'm working on a restaurant directory site. I have restaurant details page that I need to implement gmap, slideshow, etc. So I need a specific page.tpl and Theme Developer gives the info as below alt text…
designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99
1
vote
1 answer

How to Translate Template Strings in Drupal 6

I have some strings in my theme/template and I was hoping to translate them with t(), but they don't appear in /admin/build/translate/search. I could do it in PHP code and make my own function, but is this "the right way"?