Theming is about the development, adaption and configuration of "themes". A "theme" in Drupal is a set of files containing PHP, templates, Javascript and CSS that in concert provides a certain appearance of a site, and that clearly separates layout and styling of a Drupal site from content and ...

learn more… | top users | synonyms (2)

0
votes
0answers
2 views

Change specific block look & feel

I have a block like this: <section id="block-locale-language" class="block block-locale clearfix" data-thmr="thmr_23"> <h2 class="block-title">Languages</h2> <ul ...
0
votes
2answers
12 views

Making content and functions maintainable in the long run

I've been playing around with drupal for a couple of weeks now and one subsisting doubt remains in my mind: what is the correct, 'Drupal' way to add your custom content? For basic text and links, a ...
0
votes
1answer
8 views

Overwrite login page

I'm trying to overwrite the FULL LOGIN PAGE, not only the login form! I've tried this function your_themename_theme() { $items = array(); // create custom user-login.tpl.php ...
0
votes
0answers
12 views

Teaser Class Node ID

I have created a views page which displays teasers. Is there a way I can apply teaser node id as a class of the teaser's row. Currently I am getting these classes views-row views-row-8 ...
0
votes
1answer
20 views

Access page variables in form template

I have a customised form template 'user-profile-edit.tpl.php' and i'm trying to add some custom variables so I can get a block of dynamic content (users current friends / requests etc) to display in ...
-1
votes
1answer
44 views

Upload as Teaser Background

I have created a views page which displays teasers of specific content type. When creating content I am also uploading an image which we want to display on the background of the relevant teaser. So ...
0
votes
0answers
13 views

Views pdf css file not being applied on generated pdf

I've created a pdf display with views_pdf module in views, and under the PDF SETTINGS i've included a CSS File (eg. sites/all/themes/custom/mytheme/css/mytheme.css). When viewing the page display of ...
0
votes
0answers
19 views

How to use theming in other module

Currently I am building a module by reusing the 'page callback' function in an other module. The data array are successfully rendered. However The presentation is poor. I suspect that after page ...
-2
votes
0answers
29 views

alter output of print module

What I am trying to do is to generate a PDF from a content type, users info and strings, which are generated in my custom module. I am using Print module, which provides me functionality to generate ...
-2
votes
0answers
24 views

Head section not showing up at right place

I have a specific theme. I create an html.tpl.php page where I put my head section ( doctype, head tag, print styles and so on) But, when I view a page I am seeing that this head section is printed ...
0
votes
0answers
36 views

How to customize registration ,login and forgot password pages in bootstrap theme?

I want to customize registration, login and forgot password pages, theming and changing the position of submit buttton and including social connect, i have used this code function ...
0
votes
0answers
7 views

How to print a link to the ajax-deliverable path created using hook_menu?

I have created a ajax-deliverable path using hook_menu(). Here is the code: function custom_module_menu() { $items = array(); $items['get_mempages'] = array( 'page callback' => ...
0
votes
0answers
9 views

Custom Module: Programmatically Printing Field from Custom Form - Question

I set up a tiny custom module giving me a page of editable text fields that I can pull later. There is one part I saw with printing the fields in the page.tpl page, but don't understand how it ...
1
vote
2answers
75 views

Using hook_form_FORM_ID_alter to add CSS class to Simple Hierarchical Select

I'm trying to use hook_form_FORM_ID_alter to add a CSS class to one of the select element. I'm trying to add a CSS class "form-control", to the <select ...
0
votes
0answers
17 views

Fivestar exact value render

Well here's the problem, I am rendering a fivestar field widget as following : $settings = array( 'content_type' => 'node', 'content_id' => $entity->nid, ...
0
votes
0answers
13 views

How to prevent drupal select 10 articles on front page by default? [duplicate]

The thing is I don't know where to disable this action, even after I rebuild my frontpage with other blocks/views/panels instead the default blog list style page, drupal will still do the select from ...
1
vote
0answers
22 views

Coding standards for custom theme functions regarding arrays passed as variables?

I have created a custom theme function and almost all the data that I pass via variables is in one big array. I have documented the keys of the array fairly well. In my first pass at the module I ...
2
votes
1answer
31 views

How to change html of CAPTCHA module in another module?

I add captcha field to form in this way $form['captcha'] = array( '#type' => 'captcha', '#title' => 'Simple title', '#captcha_type' => 'captcha/Math', '#description' => ...
-1
votes
0answers
22 views

Theming view while grouping fields only with templates ? (view 3)

I'm new with views and I try to do something looking easy with other template engine I've used but here with Drupal ... I want to have to output list of articles like this : <div class="story ...
0
votes
1answer
19 views

CSS selectors for specific pages

I'm working on a custom theme which involves styling specific pages and nodes. At first, to target these specific nodes, I used the selector page-node-##, where ## is the node ID. But this was on my ...
3
votes
1answer
23 views

How to override jquery update preprocess page

The objective is to exclude certain javascript files from some sections of the website. I exclude javascript and css files in this way in the template.php file of the theme: function ...
0
votes
0answers
10 views

I´m using Quiz module and Multiple choice question, how can I hide the results for each question?

Using Drupal 6, I have created a quiz with several multiple choice question. The users can see the results, but I want that users can only see the comments for their results, not the result for each ...
2
votes
1answer
23 views

How to theme output of node_view_multiple()?

If I want to theme the output of node_view_multiple() I can just set the #theme element of the renderable array generated by the node_view_multiple() function. But, what if I'm not the one that ...
-1
votes
0answers
18 views

custom add rows in bootstrap theme based on content

I want to make a bootstrap theme with a custom row content based on the content. So when you have a row with 3 columns en you want to add more content on another row with a difference col span (don't ...
0
votes
0answers
24 views

How to add new blocks when “The block X was assigned to the invalid region Y and has been disabled”

I have inherited a site (in Drupal 6) and the original developers are completely out of the picture. I need to add a block but it looks like they've customized things and blocks are being rendered in ...
1
vote
0answers
28 views

How to get/provide tpl file of editing a field collection?

I want to theme a my collection field on the edit page. I have several fields in one collection and that collection gets all the height of the screen. Though, I want the values of the collection ...
1
vote
4answers
104 views
+50

How can I theme a form “checkboxes” element?

I've got a checkboxes field displayed on the user profile form. I'm trying to restyle that field to put the description BEFORE the checkboxes. That seems like it should be a simple thing? So far I've ...
0
votes
1answer
30 views

how to integrate libraries to load third party files in themes drupal?

I just want to know how to integrate third party files with the drupal theme.
0
votes
1answer
38 views

node theming doesn't work

I am a Drupal beginner. I'm using Drupal 7. I created a blog using views. I'm trying to theme the blog node using node--blog.tpl.php but it doesn't work. When I change it to simply node.tpl.php it ...
5
votes
3answers
94 views

What are the template variables to identify that a page is a term or user?

I'm trying to modify a theme so that when the term page or user profile page are displayed it doesn't generate the title at the top. I figured out how to do it on nodes but I just can't figure out ...
2
votes
3answers
76 views

How to wrap first word of page title in span in drupal 7

I want to implement it with theme_preprocess function. Every my attempt fails. function mdrupal_mono_preprocess_page(&$variables) { $variables['title'] = drupal_get_title($variables['node']); ...
1
vote
1answer
27 views

Programmatically printing from field_collection array

Is there any simple way to print a certain number of elements from a field collection? Say I have an array of 8 elements and want to just print 4 at the top of a page; then, print the other 4 at the ...
1
vote
1answer
24 views

Keep custom theme when using AJAX submit

I am using the following code to switch to a custom theme based on the URL function job_agent_custom_theme() { if (arg(0) == 'vista') { return 'vista'; } } This works great and will switch ...
0
votes
1answer
24 views

Weird Sidebar Formatting in module [closed]

I'm having problems with the sidebar on a custom module page. For some reason all the li's are hidden(?) so they're not getting the correct styling. The module itself (co-worker coded) is a form. I ...
0
votes
0answers
14 views

Theme settings override (image upload)

I'm using Drupal 7. I'm trying to override an existing theme to let the user control the web site banner in the header via theme preference. I already did this in theme-settings.php : ...
-2
votes
0answers
31 views

A Tree of Views Grid [on hold]

OK I will revise the question. I have a Content type called Staff with several fields, including Image. I am trying to build a staff directory page using Views. What I would want is a grid with the ...
0
votes
0answers
25 views

How to output content use my custom way?

For example, I have two site (A & B), A is built by drupal. On site B, I wanna display a list of news from site A. I choose to add such code to B's page <script ...
1
vote
0answers
31 views

Disable form altering for admin pages on Bootstrap 3

My default theme is Bootstrap but I use Shiny theme as admin theme. Bootstrap theme alters the forms and fields. And I use Hierarchical Select module, there is a dropbox for multiselection and the ...
0
votes
0answers
16 views

Remove collapsible fieldsets from form Getlocations

I'm a bit a novice to hook_form_alter(), I've watched some screencasts and did read some documentation. I've a form with a search box created by the Get Locations module, which is rendered in a ...
0
votes
1answer
47 views

“Last Updated at” field in Drupal 7

I wanted to add a filed in my website (in footer area), which can automatically display the "last updated" date. I found the same question in SO but it is not working properly. While accessing some ...
0
votes
1answer
16 views

Change Drupal's default styling

I'm starting to build a new Drupal site with the core theme "Stark" (Almost no styling) but I can't seem to find where the default body background(grey) is coming from so I can change it. (I'm good ...
0
votes
1answer
21 views

how to customize user profile page

I want to customize user profile page as per my own way. I have created one file named as page--user.tpl.php, but after making changes in this file during user logged in, the changes reflects on sign ...
0
votes
1answer
15 views

how to get individual classes for each menu list items

I am theming my website and used the following code to print my main menu. <?php $main_menu = variable_get('menu_main_links_source', 'main-menu'); $tree = menu_tree($main_menu); print ...
0
votes
1answer
28 views

Is there a way to change the save button to post? [duplicate]

I'd like it to say "post" instead of "save" when posting comments and also for posting nodes.
0
votes
0answers
26 views

How can I override panels_everywhere with a tpl?

I have a site which use panels_everywhere but I want to create a tpl file which contains only the node without any pane for an iframe purpose. I want to make a condition that if the domain alias is ...
0
votes
1answer
23 views

User relationship module - error strict warning: Only variables should be passed by reference

module name: User Relationships. module version is: 7.x-1.0-alpha5 whenever i try to add relationship type or edit it give me this error: Strict warning: Only variables should be passed by ...
0
votes
1answer
25 views

Views theming, using raw data

I am using views to get results which can be filtered (exposed) by the user. So far so good. Now I have to (heavily) modify the end result and while I have figured out which template I need to use, I ...
4
votes
2answers
57 views

How do I theme repeating dates output field?

I currently have a calendar of events and each event has multiple repeating dates. Now when i display them it shows all those repeating dates in a long list. How would i theme this to show only if ...
0
votes
0answers
45 views

Adaptive images module with support for retina images

I found some modules to support adaptive images (e.g. Adaptive Image Styles (ais)). unfortunately noone of these has support for retina images (in the feature list). Are there modules to support ...
2
votes
1answer
19 views

What will be my function name in template.php for particular .tpl.php

I have template.php and node--product.tpl.php files. What should be my function name in template.php to pass variable from template.php to .tpl.php Here is template.php code function ...