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

Can't run Bundle install [on hold]

I'm kind of new to omega 4 and i'm workin on windows 8 and Cgywin . when i go to my sub-theme with drush or cgywin and run bundle install i get error like this : An error occurred while installing ...
0
votes
0answers
17 views

Remove markup from render pagecontent

I am theming a page in D7 and need to change the markup that gets rendered out when I print<?php print render($page['content']); ?>. Currently it prints <div class="">...some ...
0
votes
0answers
15 views

Real-time preview of node/form in Drupal 7

I'm trying to achieve this in Drupal 7. This is what I need URL for working example (But its not in Drupal). Requirement - Live Preview with alignment features From Drupal.Stackexchange I've came ...
0
votes
1answer
11 views

Buttons get longer when pressed if using AJAX

I'm using Ajax Commerce Cart Cart with a custom Drupal 7 theme that I made with Artisteer, but the issue does not seem to just be related to the one module. Whenever AJAX is attached to a button, when ...
0
votes
1answer
16 views

No menus being displayed in SideBar First

Im using my own Omega 3 sub-theme and a new superfish menu (I created) to be displayed in the Sidebar First section of each page...no big deal. The menu displays as needed in while Im admin, but the ...
0
votes
0answers
21 views

how to verify if a field is empty in views field template?

I have a views row template (views-view-fields--mymodule.tpl.php) I wanted to verify if a specific field is empty. Is there any way to perform this ?. Here is what I already tried. Every try ...
-3
votes
1answer
26 views

How to give space between rows of a table [on hold]

I have a view in Drupal and I want to give more space between elements rows. How do I do it?
0
votes
0answers
25 views

Some theme settings data could not be retrieved in the tpl

I added extra settings values set to the theme that I use in 7. The extra settings set is uploading a defined number of images, in-order to be used in a slideshow. It has been done as the following, ...
0
votes
1answer
18 views

How to put the menu over the content? [on hold]

I'm developing a website with drupal 7. I use zen theme 7.x/5.x. I want to put the menu over the content. The content it's a slideshow in the front page. I try to put the two menus in the content ...
0
votes
1answer
22 views

Is there a way to upload files to the theme directory

I use the following code to upload images should be used in slideshow of the theme settings theme-settings.php: for ($i = 0; $i < 7; $i++){ ...
-1
votes
1answer
32 views

How do I theme the user/uid/edit page?

I am using two themes for my web and mobile site. No matter what I try, the user edit page is always shown as in the theme of my web site and not my mobile site. The following code doesn't work. ...
0
votes
0answers
16 views

Bootstrap dropdown parent link not clickable

This is the first drupal project i'm working on and i'm having the following problem. I have my dropdown menu set up as followed: The problem is that the parent link "Materialen" is not clickable ...
2
votes
0answers
32 views

Bootstrap Accordion Adapting

I'm adapting my bootstrap html theme to Drupal 7 and want to use some of the features of Bootstrap 3 theme. In Bootstrap theme, there is a code for accordion menu like this: /** * Implements ...
1
vote
1answer
21 views

Drupal Views Remove First Part of Path

I have a view that has a link as one of the fields. the display shows the entire link path i.e, http://www.example.com/user i want just the /user to show up in the view. is this something that ...
0
votes
0answers
14 views

Enable Twitter Bootstrap responsive design on tablets [on hold]

I'm creating a sub-theme using Twitter Bootstrap as the base. The responsive design works as expected, however, for my project purpose, I would like to have the responsive design on tablets (iOS / ...
0
votes
1answer
25 views

Wrap form field

I want to render a form element like this: <div class="form-group clearfix"> <label>Title: <span class="red">*</span></label> <div class="pull-left"> ...
-1
votes
0answers
24 views

Autoload articles in drupal 7 [closed]

I want to implement an auto-load functionality while scrolling, that is the next article (node) will auto-load on scroll down. I don't know is there any module in Drupal 7 to achieve this? Please ...
0
votes
0answers
20 views

Bootstrap theme background colours and images not rendering in ie8 [closed]

I'm finding that ie8 and below are not displaying background images even with html5shiv and bootstrap.min.js being called from the html template after styles are printed: <?php print $styles; ...
1
vote
1answer
27 views

sub theme not inheriting css

I have a theme, and many subthemes, with the goal of creating a network of sites that are different, but share some resources (like the stackexchange sites do). What I want is to include lots of ...
0
votes
1answer
28 views

Where is $page['sidebar_second'] rendered? I want to edit the style of the <ul> listing of the recent comments

The comments in the block recent comments is styled with an unordered list. I want the points of the list beginn exactly under the N of New Comments. Google Chrome tells me that there is a ...
0
votes
0answers
23 views

Zenstrap/Mobile Tools/Browscap combination shows fatal error [on hold]

I have two themes in my website, one for web and another for mobile. the second theme is Zenstrap. I also installed the Mobile Theme module to switch between them, and configured it to use Browscap, ...
0
votes
1answer
33 views

From theme() to drupal_render() [closed]

I'm a Drupal themer, learning how to develop for Drupal. Currently I'm reading a book called Drupal 7 Module Development in which the following code is used. /** * Implements hook_block_view(). */ ...
0
votes
1answer
27 views

Theme function cannot be found Drupal

For some reason my theme function is not being found by Drupal. I swear I have followed everything and spent hours of time trying to make this work to no avail. Plus with not a single answer in the ...
0
votes
1answer
29 views

Output taxonomy term in views unformatted using twig

I'd like to output taxonomy terms as html classes for view-rows in the views unformatted template for Drupal 8. My code: {% if title %} <h3>{{ title }}</h3> {% endif %} ...
1
vote
0answers
22 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 ├── ...
0
votes
1answer
23 views

How to add a div wrapper around a zone?

I'm using the Omega theme and have a zone that I need a div around for a certain content type. Trying to figure out the best way to do it. Was thinking a preprocess, but no clue which. Fairly new to ...
1
vote
0answers
32 views

How do I add classes to main menu ul and li in Drupal 8

I want to generate the html elements and their classes to fit my styling of the main menu. I'm confused by all the near-possibilities offered in the api documentation and by looking at core themes ...
0
votes
2answers
40 views

Commerce checkout form all pane errors to be displayed on top of form

I am using latest commerce module with D7 site. By default commerce displays form errors inside individual commerce checkout form panes. This is designed by default and every pane has it's own ...
1
vote
2answers
21 views

How do you remove the search box on the search results page?

I'm working on customizing my search results page. By default, the results page contains another instance of the search box at the top. I have the search box in a block at the top of every page, so ...
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
18 views

How to make a specific post RTL

I have a page where i post English articles by default. but some times i have a Persian article that should be posted inside this page. after posting, it shows left to right and is very bad looking. ...
0
votes
1answer
25 views

JQuery via the .info file isn't working

I'm using/experimenting with Zen on my drupal site, and have just inserted a js file named alert.js into my theme's js folder. The file has the following code: (function ($){ ...
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 ...
1
vote
1answer
58 views

Drupal 8 JavaScript and Best Practice

I am building a theme for Drupal 8 that I want to make available in the drupal.org theme section. As such, I want it to conform to best practice code wise. When adding JavaScript, I notice there has ...
0
votes
1answer
26 views

How to implement theme function in block in Drupal 8

i am new in drupal and this is my first post so if i am wrong please correct me the following code in drupal 7 is working fine but i am not able to implement this same code in drupal 8.0-alpha12 ...
0
votes
1answer
22 views

Where is theThe Comment Form Template?

I can find the comments template at modules/comments/comment.tpl.php But where is the comment Form Template please? I want to add a users image next to the form Thanks for your help Charles
0
votes
3answers
31 views

Render custom block by block name

I have created a custom block in the Drupal CMS. Say it is called "test_block". Is there a way to render this block in a template file using the name of the block? Thanks,
0
votes
2answers
49 views

Guide on How to Load CSS File Per Role

I'm looking for the simplest solution to allow a custom CSS page to load per role. I have to the CSS pages done, but just need to load them and ensure they are only loaded based on user role. I'm ...
0
votes
2answers
25 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
2answers
23 views

Where do I put a custom function for multiple themes

I have two 2 themes so two template.php. I have a function that I use in both themes. I don't want to write it twice. Where do I put it ?
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
17 views

How to change title of profile-profile2_machine_name only, but not profile-profile2_machine_name/%user

I'd like to change the title of my profile-profile2_machine_name page, but not the page profile-profile2_machine_name/%user page. This is because I have a settings menu for each user in my ...
0
votes
1answer
43 views

How to add active class to a specific menu only, while ignoring other menus?

I have 2 conflicting menus I need to solve by adding an active class to a targeted menu only, they are a user menu and a profile and account settings menu which have overlapping links. User Menu (in ...
0
votes
1answer
31 views

How Change the Style of views based on user option

I have a set of products into grid view. I need to create a two tabs one for grid view and list view(swipe view). How to create like this using views in drupal 7?
0
votes
2answers
44 views

Comment.tpl.php how to add a link back to the node

In the Comment.tpl.php I've shown the comment parent node title by $node->title I need to make this title link back to the parent node $node->$node_url but this doesn't work Many thanks for ...
0
votes
1answer
24 views

Print views fields in a custom view page template

I am trying to create a custom view page template which will be made of custom fields, which i am trying to print. I created a view page and added all the needed fields to it. Next, I created a ...
0
votes
1answer
23 views

How to set the property $label_hidden to be true

In the field.tpl.php the following code: <div class="<?php print $classes; ?>"<?php print $attributes; ?>> <?php if (!$label_hidden): ?> <div ...
0
votes
2answers
35 views

Empty page.tpl.php renders data too

I created my own theme in Drupal 7. It is not sub-theme. Simple I created a folder at sites/all/themes/my_foundation, a template.info as usual, then an empty page.tpl.php. I expected that a blank ...
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
36 views

hooks inside template.php [duplicate]

Everytime I use drupal hooks I always take the custom module route and call the hooks from there. I'm basically talking about all the hooks in drupal -- hook_form_alter(), hook_page_alter(), ...