Theme templates are part of Drupal's theming system and allow for the customization of Drupal sites.

learn more… | top users | synonyms (3)

0
votes
0answers
5 views

How to change Zen Grid System

Zen is a great theme and comes by 3 columns gris as default and even when i read the documentation i don't know how to change the grid system to 2 columns 30%- 70% for ex.. Can you help me please.
0
votes
1answer
16 views

Solr search, number of results

I'm trying to find a way to display the number of resuts in a solr search. I need to display it in search-results template. Thanks for any hint
0
votes
0answers
66 views

user-register.tpl.php javascript errors

I've got a custom register template working by adding this in my template: // Customize User Login function THEME_theme(&$existing, $type, $theme, $path){ $hooks = array(); // Make ...
0
votes
1answer
20 views

How can I list all Twig functions and filters with their description?

I want a list of all available Twig filters and functions and for each one of them I need to have a description of the function/filter so the user can see what functions and filters are available and ...
0
votes
1answer
14 views

Theming: when I use a smaller device, my main content goes behind my sidebar

I am making a sub-theme from the basic theme for Drupal 7. The side bar works fine on all sizes above 480px in length, but on 480px or below, my content goes behind my sidebar and there is a ...
1
vote
0answers
23 views

Twig templates are not loading

I am using Drupal 8 from github:drupal/drupal@a9ac0fbf17, but having problems creating custom template, using Twig template engine. Here is template file structure: . ├── README.txt ├── ...
1
vote
1answer
48 views

Why are there so many settings.php files one in each folder or sub-directory?

I am Drupal newbie taking over a poorly documented D6 group of sites organized by sub-domains. In examining the dev.[domain].org/sites/ folder I discover folders: all, default, demo.[domain].org and ...
0
votes
2answers
20 views

Separate header and footer for particular content type [closed]

How can I implement separate header and footer for particular content type in drupal 7 ? PLz suggest some solutiuon I want to call a different region--header.tpl.php for particular content type. Is ...
0
votes
1answer
27 views

How to hide a user profile based on custom field?

I need to allow users to turn off the public display of their profile if they wish too. I created a Boolean field to store whether the user wanted the profile shown or hidden. According to this ...
0
votes
1answer
12 views

Programmatically render an imagefield in Drupal 6 as defined in content-field.tpl.php

What sounds like simple task in the first place, has taken me hours without getting a solution: All I want is to render single values of an imagefield just as in the normal node, i.e. as defined in ...
0
votes
1answer
47 views

How to use module template to override a specific Views field and send the right variable?

I hope the title is ok. I've seen many discussion here about using custom templates in a module when using views, but i lack a piece of answer : how to use specific variables from an entity in that ...
0
votes
1answer
21 views

How can render a Block on a Contact form Page

I want to render a Block on a special content type page and on the contact form page. All works fine, but i didn`t found any way to print the Block also on the contact form page. i use in the ...
0
votes
2answers
26 views

Add classes to login form fields D 7

I ma trying to add foundation classes to my #user-register-form fields in D7 <div class="form-item form-type-textfield form-item-name"> <label for="edit-name">Username <span ...
0
votes
0answers
23 views

Multiple views for the same content type

I have a content type “foo” with and Entity Reference to himself. It has 3 different views: “Default”, “Teaser”, “Custom View” (code created). (The teaser and the custom doesn’t display the reference ...
0
votes
1answer
46 views

Generating a random number without duplicates on blog comment

A section of my site is a blog where I allow comments. Each comment has a thumbnail associated with it. If the commenter is a user, then their profile photo is used. If they are anonymous I have a ...
0
votes
1answer
20 views

What should I name my overriding render-function?

I'm just starting out with drupal and need some custom html for an intricate menu system. My plan is to override the html-generating functions in template.php. My theme name is "Drupal subtheme" and ...
0
votes
1answer
30 views

Add placeholder to fom in twig template override

I enabled twig debug and realized need to add block--search.html.twig to my theme. Then I used dump(content) to see if I can add a placeholder to search input field {% extends ...
1
vote
1answer
34 views

Make a custom view mode default

I made a custom view mode in Display Suite and I would like to use it as the default view mode for a given content type. Can anybody enlighten me as to how to do it?
0
votes
0answers
24 views

Move $title variable to region--content.tpl.php

I'm having a bit of trouble sorting something out. I'm trying to move the $title variable to region--content.tpl.php. I think a preprocess function - some variation of template_preprocess_region is ...
0
votes
1answer
15 views

compare terms from userterm and node term

I have users and nodes. bith have the same term referende field: field_area goal is to display a message in node.tpl.php when: - user has term 'south' - node has term 'south' i have used the field ...
0
votes
1answer
22 views

how to provide a content type variable to region--header.tpl.php

I want to hide some inline html from header for specific content type. How cud I provide a content type variable to region--header.tpl.php to put a php condition to hide the html?
0
votes
1answer
54 views

What's going wrong in my template file?

I'm displaying a user's messages in a view (which contains the messages' mid) and created a flag 'Unread' for them. (New messages are automatically flagged with a rule.) I'd now like to give the ...
0
votes
1answer
27 views

page template for view

I have a view which I want to give a different look and feel from the rest of my page. Now the view is displayed as a page at a specific URL. I have tried naming my custom page template like ...
0
votes
1answer
29 views

Node theme template override isn't working

I'm using the paid theme md-alpine and I added a content type called webinars, and a node template for webinars node--webinars.tpl.php The only thing I put in the page is and I only get an HTML page ...
0
votes
0answers
23 views

How to override a Insert module tpl file?

I'm trying to override a .tpl file from the Insert module in my D7 theme. I copied the file from sites/all/modules/insert/templates/image-insert-image.tpl.php to ...
0
votes
1answer
21 views

Custom Theme for Commerce Kickstart 2 not working as expected

hi I followed this really good guide on how to create a custom theme for Commerce Kickstart. Basically this is what I did: made a copy of - ...
0
votes
1answer
188 views

Responsive bootstrap grid with 6 columns of equal heights

In the front page of our website, I would like to list down groups led by researchers and each group is having a thumbnail picture and a title where the picture is of fixed width/height but, the title ...
0
votes
0answers
16 views

How can i theme cart page from TABLE to DIV format

I am using drupal 7 with ubercart 3. I am not able to change the theme of CART page. By default it is picking theming of items from tapir table. I want to have a cart page with DIV elements and not ...
0
votes
0answers
22 views

Theme for Form API field with custom template

I am unsure how to make variables available to my custom template for a Form API field. So far I have got the below: Define form: /** * Defines search form */ function ...
1
vote
1answer
19 views

Add class to page content output

I have the following snippet in a theme's page.tpl.php: <div id="content-wrap" class="row"> <?php print render($title_prefix); ?> <?php if ($title): ?><h1 ...
0
votes
2answers
37 views

how to hide the adminblog link in the teaser

how to remove admin`s blog in footer of teasers i can remove the add comment link with this code : function mytheme_node_view_alter(&$build){ if ($build['#view_mode'] == 'teaser') { // ...
0
votes
1answer
67 views

Disable the navbar in a Bootstrap sub-theme

I've noticed that the Bootstrap Navbar, while behaving like the 'Main menu' is not available to be enabled and disabled from the blocks admin page, furthermore at the admin menu ...
0
votes
1answer
24 views

$fields is undefined - custom theme creation

I'm attempting to create a custom template for a view. The template file I'm creating is being loaded (if I add some static html it renders). I'm having trouble accessing values from the view. The ...
0
votes
2answers
47 views

Do I have to delete the default folder?

Do I have to delete default folder which is located under /sites? Because I installed new theme and I think there is no need to keep the default theme. And, if I can't delete it, please tell me why?
0
votes
1answer
22 views

How do I modify the individual links on comments (reply, delete, any others I add in Flags, etc…)?

I'm in my sub theme's comment.tpl.php, and I have print render($content['links']) - how do I access the individual links within that? I tried doing a print_r to see if it was a bunch of nested arrays ...
0
votes
0answers
12 views

Help understanding overriding rendering of $content [Drupal 6]

I'm trying to create a tpl.php file for a node type which renders [ubercart] products to match a wireframe. Basically i'm trying to break up the description field, attributes and images into separate ...
0
votes
1answer
33 views

How can I edit the contents of the printable invoice for Ubercart order?

I need to add some text and a few extra order fields (and user profile fields, if possible) to the printable invoice that is accessed via a link like this: ...
0
votes
1answer
64 views

Render fields in a custom bean.tpl.php

I have a custom tpl for bean block called: block--bean--image-footer-block.tpl.php, also I have custom tpl for both fields: field--title-field--footer-block.tpl.php ...
1
vote
3answers
33 views

Starting with View Modes

I have done a drupal theme and as of right now am only working with teaser and full view modes. Both of which I have themed in the node--product.tpl.php file I am interested in learning view modes to ...
0
votes
0answers
8 views

Automatically Install Menu With Theme

I am setting up custom menus in a theme that I am developing. In the theme I am call certian menus like this the preprocess function: function THEMENAME_preprocess_page(&$variables){ ...
0
votes
0answers
13 views

Adding Another Option To links__system

I am trying to create several different dynamic menu's in drupal, each with their own class and style. Right now I am using links__system for the primary and secondary menu, but is there a way to ...
0
votes
1answer
25 views

Show content as per Taxonomy Term

I am new to drupal and using drupal 7. I have created some taxonomies and using it as menus using Taxonomy Menu module. The Taxonomies are being shown as menus. Now I want to change content of the ...
0
votes
0answers
14 views

views_embed_view doesn't see template theme

I have successfully themed a view in my templates.php file. It works great on a standalone page. However, when I try to call the same view using hook_form_alter, inserting it into a specific form, the ...
1
vote
2answers
29 views

Choosing between template files and custom module

I wanted to add some custom functionality in my Drupal website, so I read some tutorials (first, second ) and decided to create custom template files for specific forms & exposed filters I ...
2
votes
1answer
57 views

Is there any rule when to use panels and when to use templates in drupal 7

I want to know about the panels and templates use cases as i am confused when to use panels and when to use templates as each page can be designed by both the ways then which is the best solution. As ...
0
votes
1answer
30 views

Unwanted <p> tags inserted before and after a rendered $item

First time creating a custom template for a field. I've created the field--field_phone_number.tpl.php and know it's working. I'm trying to make it so when a user enters a phone number, it displays ...
0
votes
0answers
38 views

Export node in html format

Is there a way to export the html generated for a node using node--content-type.tpl.php or some other template to be exported? This is my requirement. I have a content type called news and have the ...
0
votes
1answer
34 views

alterations in tpl file work, but not dpm();, dsm(); or drupal_set_message();

This question here at DA has a popular suggestion to check page.tpl.php to see if it says print $messages;. I verified this and this is the case. I cleared caches many times, btw after which there ...
0
votes
2answers
44 views

Template tpl File Naming Question

I am currently assigning a theme using hook_custom_theme and just allowing the pathing system for .tpl files to override displays that I want to edit by using custom .tpl files. I CANNOT find the ...
1
vote
0answers
23 views

Format inline drupal form elements

I got this: As you see I already aligned label and input field inline with CSS, because they are both inside same container, but the button is outside. I was wondering if I could somehow move the ...