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
4 views

theme contact form block

I am using contact_form_blocks-7.x-1.x-dev module. Using this module I have embedd contact us form in my website. For themeing I have created file named block--contact.tpl.php. Cleared cache. but it ...
-1
votes
1answer
26 views

I want to have two page.tpl.php on my site [duplicate]

I want to have two page.tpl.php on my site ..one for my front page and other for rest of pages ...now both have same name page.tpl.php what should I do to make one of them for Front page and other for ...
0
votes
0answers
10 views

Customize page title with form

i've followed this tutorial to add a form in my custom module page Drupal Form Tutorial Now i want customize the title of the page with my own style. How can i change the default style?
0
votes
1answer
12 views

How to set header and footer for any drupal_mail messsage?

I am working with drupal 7 site. I would like to know how to create email template for any email sent from drupal system? Is there any hook or template should I implement in my custom module or ...
0
votes
1answer
16 views

Add an input[type=“file”] label

i need to style the input[type="file"], the only way to really style them is to add a <label> which has the same for value as the input's id. Drupal does not provide a correct label in single ...
0
votes
1answer
22 views

How to display only “after now” dates (of multiple) of a date-field in a node?

I have an 'event' node-type with just a body and a date-field. For that date-field, multiple dates are allowed. I'm listing event-nodes in a view and already use filters to only display nodes when ...
1
vote
1answer
13 views

How to add IE specific stylesheet in drupal 7 in drupal way [duplicate]

I want to add this into my Drupal site in a Drupal way! <!--[if IE]> <link type="text/css" rel="stylesheet" href="IE.css" media="all" /> <![endif]--> I know it can be done easily ...
0
votes
1answer
21 views

Node theming through Views or tpl.php files - which one is better for performance?

As an example, let's take a node with 5 fields and two blocks between those fields. E. g. you want an article do be displayed like this: First field Second field Block with related nodes Third ...
0
votes
2answers
21 views

How do I get Drupal 7 to recognize my 404 page override?

I am using a custom 404 page. I also have a theme installed. This is what I did: I created a node 95761 which contains my 404 error page. I set node/95761 to be my 404 error page I've created a ...
0
votes
1answer
20 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
18 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
70 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
23 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
16 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
25 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
49 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
21 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
30 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
13 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
49 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
22 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
27 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
49 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
32 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
37 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
25 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
34 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
23 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
262 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
17 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
23 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
20 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
82 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
34 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
66 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
34 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 ...