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
1answer
16 views

Stop caching for a specific node (by nid) Drupal 7

Ideally i want to set custom params for caching in some particular nodes using conditions in my template.php E.g. algorithm: for node with known nid set custom caching params But that's enough for ...
0
votes
1answer
10 views

how do i theme a flag for different pages drupal 7

I want to theme a flag for different pages like on user profile page the html of the flag will be different then on the view page . I can make use of the flag.tpl.php and theme it but, I don't how to ...
0
votes
0answers
16 views

is it possible to change user agent

In my drupal, I used two themes. One for desktop and the other for mobile. In mobile I need a option "VIEW FULL SITE". On clicking this, I need to change user agent as Desktop. Is it possible to ...
-1
votes
1answer
23 views

Drupal popup module is not working in custom front page

Am using drupal popup-7.x-1.4 module. i want to display a paricular blocks content in popup. So i used this module. it's working gud except my custom front page(page--front.tpl.php).it's showing a ...
1
vote
3answers
32 views

Apply different css files according to user selection

Use case: content managers would have permissions to change the color scheme of the site. Solution: I would make a page from hook_menu and give option to select from different pre defined css files. ...
0
votes
0answers
12 views

How to add regions in drupal 7 theme

I wanna know how to add regions on a zen drupal 7 theme. I'm using the neptune sub-theme. I have altered the .info file. But i cant find the layout.css to adjust the region sizes.
0
votes
0answers
14 views

Permanent login form in header

I'm trying to create a login form which remains permanent in the header and doesn't go away once the user signs in. This is what my header looks like in page.tpl.php <div id="page"> ...
0
votes
1answer
26 views

Why Cant add a class to an element by jquery

In the page.tpl.php I have some elements like <div class="play"></div> I have linked js file to the page and it is correctly works since all functions operate based on click ...
1
vote
3answers
55 views

How to create welcome html page in drupal?

I used custom front page "page--front.tpl.php". now i want to create welcome html page. when user open my website link, first html page should be open, afterthat only my site should open..any one can ...
0
votes
1answer
17 views

How can I adjust the css within fusion theme based on the size of the screen?

I'm using the Fusion theme for its responsive components but there are some things I want to tweak on the different layouts based on the screen size of the device viewing. How can I apply style ...
0
votes
3answers
56 views

How to implement jQuery Accordion for a Menu?

I'm looking to implement something like the Accordion Menu module, but unfortunately that module has issues with Menu Block and other modules... so what's the best way to implement the jQuery ...
1
vote
2answers
71 views

Print current base language in tpl.php

I statically linked an anchor to my /cart page on page.tpl.php, but since it's a multi language website, when I'm on http://localhost/fr it still goes to http://localhost/cart instead of ...
0
votes
0answers
10 views

How to store a variable array at THEME_preprocess_page to use in a page.tpl? [closed]

In use to have this menu code working well in page.tpl.php but I learned it is best practice to do the heavy lifting on the template.php or in the case of omega 4 sub theme, you place all your ...
0
votes
0answers
11 views

need some information related drupal [closed]

I am very new to drupal and I want to know if it is possible to make a travel booking website using drupal. Something that have core features like booking for cars, flights, hotels etc. Something like ...
-2
votes
2answers
31 views

Drupal: How to fetch node title & content using query?

I want to display all my node content in home page one by one. any one can help me how to fetch node title & content in drupal.
0
votes
2answers
24 views

Link tags in template file auto closing.

I’m having an issue wrapping a link around some output in a template file. I have the right template file; and I can put text like ‘start here’ and ‘end here’ and it prints out where I want the ‘a ...
3
votes
1answer
69 views

Using Grunt.js with Drupal [closed]

I'm in need of an organization system for my JavaScript code Drupal. Currently, I've got it inside a folder in my theme's directory: "sites/all/themes/mytheme/js". I've looked at using Grunt.js, and ...
0
votes
2answers
43 views

How to add html conent into page.tpl.php?

I have html page, need to import html page into page.tpl.php. i replaced html page with whole code of page.tpl.php. it's working fine, but when i open user page (ex.example.com/?q=user). It's not ...
0
votes
0answers
12 views

Large unknown margin-left for Views blocks

I have a lot of fighting against some unknown large margin-left , around 30px in all themes I start to work with (Zen, Adaptive Theme) - I think it's for Blocks generated by Views... I haven't found ...
0
votes
1answer
19 views

How to add padding/margin for sidebar-right in Adaptive Theme?

I am trying to make something with Adaptive Theme, but I can't find how to set a padding or margin to Right Sidebar... I am using only content -- right sidebar layout, and if I wish to add some ...
0
votes
0answers
3 views

Image output when using scald module

I'm using the scald module for image management. It's working 99% as I'd want it to - but when used with WYSIWYG (ckeditor) I'm having an annoying issue. The images in this context need captions so ...
0
votes
2answers
25 views

Custom module template override not loaded

Hi I am desperetly trying to override the template of my D7 custom module's block here is my code : function lnr_block_info() { $menus = menu_get_menus(); ...
0
votes
1answer
15 views

add custom header in term listing tpl page

I want to add some header information in header of term listing. This is my requirement. I achieve the listing of terms (store) with the help of term-taxonomy--store.tpl.php template but how to add ...
1
vote
1answer
39 views

Can I include other template into template?

I override template in my custom theme na (templates/block--[module]--[delta].tpl.php) and I would like to include other template (from the same directory) into this. Can I do it and how? Directory ...
0
votes
0answers
7 views

Render a FieldGroup in user-register.tpl file

I want to render a field groups (created using profile2 module) in user-register tpl file. I am unable to render complete field Groups, I don't want to render fields individually. During dpm of ...
0
votes
0answers
24 views

Custom pager link parameter problem

I'm trying to implement a simple pager within my custom module for a result set: //store GET paramters to append to our pager links $params = $_GET; //execute search query $results = ...
1
vote
2answers
39 views

How to print a custom user field in comment.tpl.php?

I'm trying to print a custom user field (field_avatar) image as a replacement for the user picture. Why? user picture file directory would not accept tokens. This mean, I could run into a scenario ...
0
votes
1answer
11 views

Rate Module Thumbs Counter

I've installed the Rate Module in order to add a simple thumbs up/down rating system on nodes. By default it displays the average percentage (see below) but all I want is to display a simple counter ...
2
votes
1answer
16 views

Modify how Drupal builds fields on a per form basis

I want to change the way Drupal builds specific fields on a specific node edit/add form on my site. For example, when I use print drupal_render($form['textarea']); in my ...
0
votes
0answers
16 views

How to define region template, and render it in page.tpl.php

I want to separate the header and footer wiht 2 tpl files with region, for avoid to write code repeatedly. That is my directory structure : ├── style.css ├── template.php ├── templates │   ├── ...
0
votes
1answer
14 views

I need a function to set a menu item's class to active based on if a keyword is in the URL

Weird i know but as per the clients request i need to do the following: if node being view is in a directory like this /panelist/panelist-name or this /moderator/moderator-name i need to set the a ...
0
votes
1answer
37 views

What is the recommended way to structure Sass with Zen theme?

I have just started using Sass and decided to go ahead and build a theme with Zen for the first time. My very first task is to split the header region into 3 separate regions: header-left, ...
1
vote
2answers
39 views

Submit handler doesn't work after theming the form

I have a form: function payment_system_coeff_form($form, &$form_state) { list($_SESSION['payment_systems'], $_SESSION['coefficients']) = payment_system_table(); $form['submit'] = array( ...
2
votes
2answers
60 views

Drupal 7 website layout/styling breaks all a sudden (random), how to debug? there are no logs

One of my websites running Drupal 7 goes out of format, most often when user login. This is how it should be After running out of format this how it looks This may be a CSS issue, it may be a ...
0
votes
1answer
13 views

How to replace classnames in sub theme

How to replace two classnames by writing a function in template.php The two classnames given are: comment-add and comment-comments
0
votes
1answer
38 views

Boostrap Responsive Menu Not Working

I'm having an issue with my menu on the responsive size. For some reason my menu doesn't collapse so I cannot see any of my items on my menu on a tablet or a mobile. Using the inspect element I check ...
0
votes
0answers
38 views

Inline javascript in drupal_add_js is causing WSOD

In my template.php i am executing some inline javascript code. When executing, the result is a white screen of death (WSOD). The web servers error log says: PHP Parse error: syntax error, ...
0
votes
1answer
26 views

Rendering nodes of a same content type in different templates

My Client would like to have multiple templates for one content type. How to allow a user in Drupal to select a specific template when creating a node?
1
vote
0answers
21 views

Dynamic custom template for taxonomy terms

I want to use dynamic custom templates for taxonomy terms. I have created a vocabulory myvocab, Now in this vocabulory i have created an extra field of template in taxonomies that i want to use for ...
1
vote
2answers
29 views

how can i access a node variable inside of theme_preprocess_page function? [closed]

I'm trying to access a node variable, the id of a taxonomy term but i have to do it at the page level in theme_prepocess_page function. i did it in preprocess node like this $libStatus = ...
0
votes
0answers
22 views

Changing region postition on a drupal theme

I'm quite a novice in drupal but quite advanced. i'm trying since last 3 weeks to achieve a "Region change" on the theme, i used for my site: "Business Responsive Theme". I've already tried-out ...
1
vote
1answer
31 views

How do I add classes to read-more link and add-comment link on node for bootstrap 3 [closed]

Witch preprocess function let me add btn classes from bootstrap 3 to the two links at the bottom of every teaser in Drupal 7? I tried the following. function meetu_preprocess_node(&$variables) ...
0
votes
2answers
22 views

Drupal 7 Theme [Business] not pulling in to non-front pages

I am programming five custom modules for a client in Drupal 7. Tey have, well, HAD, a company in India doing their front-end work. Something went wrong and the India company stopped responding and ...
0
votes
1answer
23 views

What is the value of $page['content'] in custom front page?

I'm a Drupal noob and inherited a Drupal website to maintain. The site has a custom theme, which includes a "page--front.tpl.php" that Drupal loads as the front page. Within this script, there is the ...
1
vote
2answers
22 views

Uncaught TypeError: Only on Drupal edit pages

I'm using the BigSlide.js sliding menu on my drupal site, which i've built into the theme, and it works fine on every page, apart from on /edit/ pages. E.g. user/%/edit. When clicking the target menu ...
0
votes
1answer
14 views

How does the theme folder work in drupal 7?

In Drupal 7, I would disable a theme within the admin section and i would physically rename the theme directory (from themeName to themeName_old), clear cache and restart the server, to my surprise, ...
1
vote
1answer
28 views

How to add class to individual radio item inside “radios”?

I need to style my radios as tabs. So I created a form element like this: $form['important_categories'] = array ( '#type' => 'radios', '#label' => NULL, '#attributes' => array ( ...
0
votes
1answer
19 views

Two variables in function

I know this is my fault and lack of knowledge of php . Sorry about this . I have a function in my template.php . /** * Implements THEME_preprocess_node(). */ function ...
0
votes
2answers
48 views

View Render output in bootstrap tab style

I have an Unformatted list style view with 2 grouping: Grouping field Nr.1: Allestimento. Grouping field Nr.2: Descrizione (allestimento and descrizione fields are excluded from display.) Now I ...
0
votes
0answers
23 views

Ubercart product link with content type

I’ve created an Ubercart store for this property management website. I’ve just got one more piece of the puzzle to do and then it’s complete but I’m having some trouble figuring this one out. There ...