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

How to print the raw value of a custom user field in comments

I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not. I've read a lot of posts related ...
0
votes
1answer
7 views

Architecture Guidance: Many off-the-shelf templated sites

I typically work on larger custom projects, but have found I have a lot of requests for projects at a lower price-point. I think I can serve this audience by creating a core Drupal installation ...
0
votes
0answers
7 views

Output menu using dpm() and zone template

I am using dpm($variables) to output the array elements for the zone menu. How do I use what is provided to output the zone menu in my template file?
-1
votes
1answer
26 views

How do I print a image field in node.html.twig with a image style? [on hold]

How do I print a image field in node.html.twig with a image style?
0
votes
3answers
30 views

How do I render sub-menus?

I have a Drupal 7 installation that, for the purposes of this question, has just the core modules. Using the Structure->Menus->Main Menu form, I added some items to the menu and, using a ...
0
votes
1answer
15 views

Embedding a view from a page with php

I need to put three view blocks next to each other on a page. Therefore, I thought i could put some php code in a new page and manually put them next to each other with DIVs. The problem is that I ...
1
vote
0answers
10 views

How to apply Panels layouts for CiviCRM pages

For CiviCRM pages Events and Contributions that has paths of e.g. www.site.com/civicrm/contribute/transact?reset=1&id=1 www.site.com/civicrm/event/register?id=23&reset=1 And so on. Problem ...
0
votes
1answer
22 views

How do I hide the page title based on node type using template_preprocess_page()?

In Drupal 7, this was possible. (See How to hide page title based on node type using template_preprocess_page().) function MYTHEME_preprocess_page(&$variables) { if (!empty($variables['node']) ...
0
votes
1answer
26 views

Create themable field group

I have a custom entity with several fields. Now I would like to group the fields and give each group it's own twig template so that I would be able to compose a page (my custom entity) containing ...
0
votes
1answer
17 views

How do I use hook_views_pre_render in template.php in Drupal 7?

I have some auto generated data from my articles stored in a view(my_amazing_view). I also have a custom field in articles where user can enter similar data. If user has entered the data, i want to ...
0
votes
0answers
5 views

Webform labels disabled for submitted submissions in back-end

When you create field components for your webform you can select if you want to hide the label of the field for the front-end. So it all makes sense, if I decided to use placeholder (Webform Hints) ...
0
votes
0answers
7 views

How do I alter the output of taxonomy page “taxonomy_term_page()”?

The drupal default taxonomy system calls taxonomy_term_page to build and render the term page. It selects the nodes and build a render array. I am trying to modify the output of the $build returned by ...
0
votes
1answer
15 views

Is it possible to add a wildcard in template.php to apply function to multiple items

I have a webform with 20 different select options under different fieldsets and they all need to have a custom drop down select field title. To achieve that you use this: function ...
0
votes
4answers
36 views

Pass php variable to javascript

I'm trying to pass variable to my js file. The file is located in my theme /js directory. The filename is backgroundConfig and this is the content of file: (function($, Drupal){ ...
0
votes
0answers
10 views

Do Syntax Libraries for LiveCSS and Geshi Filter

I can not say for certain, but I suspect odd/erratic behaviour of LiveCSS module that uses Ace syntax filter library may conflict with other syntax filtering parsing modules/libraries such as Geshi ...
0
votes
1answer
13 views

Is There a Generic Theme Duplication Module or Drush Command

As I understand there are Drush commands for Adaptive Theme, Omega, Zen and maybe other themes for creating subthemes, but is there a more generic module/way to create/duplicate a theme? It would be ...
0
votes
2answers
21 views

hook_page_alter and trying to change the '#theme_wrappers' property

I'm going a bit Drupal crazy trying to change the '#theme_wrappers' property of certain blocks in my sidebar region. I am able to set it using hook_page_alter and can dpm() it and confirm it is being ...
0
votes
1answer
20 views

Alter comment links in blog teaser in drupal 7

I would like to alter the comment links in the teaser view of the blog page. The code I have in node--blog.tpl.php at the moment is: <code><?php if ($display_submitted): ?> <div ...
0
votes
0answers
7 views

Less.inic.php Don't have a /sites/all/libraries directory [closed]

Trying to get my Less Preprocessor module to work. I don't have a /sites/all/libraries directory. I made one and it seemed to show an error on my site and crash the reports page. Any help? ...
0
votes
1answer
26 views

how to print google map field value in a page tpl

I am trying to print a value of submitted for a google map field in a page.tpl.php file. I used below code to print but got a error message. I am able to print other field types using similar code but ...
1
vote
3answers
141 views

Add <a href> link around each row in views

So basically i want to add a link to original node around each row in views. I have added the following code to the style and row template override in views. Both come up with the same result. ...
0
votes
0answers
31 views

Using Gulp JS in multiple theme development

I use Gulp JS in my themes but the issue I'm having is we work on many themes in our drupal site (sometimes up to 40!). I want to avoid repeating the same "node_modules", "gulpfile.js" and ...
0
votes
1answer
17 views

How to create a custom frontpage using page--front.tpl.php and keep theme responsiveness

I want my frontpage to be displayed with a full width image, some H2 header text and a navigation menu. However using a page--front.tpl.php and applying custom css i am losing the natural ...
0
votes
1answer
21 views

Render with custom style all contents of a content-type from custom module

I am trying to create a custom module to manage a slider. After install my current-development module, I have: a slider content-type a slider view defined to show Content (Full Content) of the ...
0
votes
0answers
15 views

Get the views fields using theme.tpl.php

I've created a views, then used the Slideshow format, then I'm thinking to attach the images as a background image of the slideshow div. I have copied the tpl from the module theme folder and then ...
0
votes
1answer
21 views

display node's field in <table>

Is it possible to display a node's field in a table? Is there any module providing it? For example I have a node "English idioms" which has a field named: "Idiom" and "Explanation". I would like to ...
0
votes
1answer
13 views

I cannot figure out how to add the search form to a child element in the menu!

I am trying to get something like this http://www.theverge.com/ on my website where you click the search icon and a search bar drops down, but I cannot figure out how to make it work. I assumed I ...
1
vote
1answer
20 views

How do I load all images and thumbnail for a multivalued image field in node view?

I have a content type with a multivalued image field. I want to make the image field render with one main image and all the thumbnail. When any of the thumbnail is clicked then it's respective image ...
0
votes
1answer
27 views

Changing font size to percent in theme [closed]

I want convert font size in existing theme from px to percentage. The theme and the CSS. Should I change font-size in body and headers only, or better to change font size in all places in CSS? What is ...
1
vote
1answer
23 views

Where to start with creating the theme for selling? [closed]

I have the task to create the Drupal theme from the existing Wordpress theme that will be sold on ThemeForest. This is the first time that I'm doing something like this, up until now I was doing the ...
1
vote
1answer
31 views

print value of email field from a node

I am using the below code to get the value of email. It works fine if the field type is "Text". But the field type used is "Email" <?php $node=node_load(14); print ...
0
votes
2answers
22 views

Print a block inside a Views header or Views footer using PHP input

There seems to be multiple ways of printing a drupal 7 block via php input filter. What is the most efficient way of printing a drupal block in Views header or Views footer attachment of a global text ...
0
votes
2answers
13 views

height of block with view containing exposed filter

I have created a block with a view containing an exposed filter (drop downbox, auto submit). Based on the selection in the dropdown, the visitor will see a short or long list of results. This block is ...
0
votes
0answers
9 views

Trouble adding pager to the nodeview page in Drupal 7

I wish to careatea pager for a mynode(custom content type) list theme page. The requirement looks similar to Sortable, paged table retrieved using EntityFieldQuery. But I doubt I am running out of the ...
0
votes
1answer
41 views

Theming a menu - removing a whitespace between the last <li> and <ul>

I want to alter the HTML of the main menu. I have a manu set up with text-align: justify. Now in Chrome, the whitespace between the last li and ul is rendered as 4px, making the last item not aligned ...
0
votes
0answers
9 views

Can you pull CCK fields into a PHP array in a node-CONTENTTYPE-tpl.php?

I am working on a website that has business profiles with hours. The content type's machine name is "business". My end goal is for the client to be able to insert the hours into a CCK field (or ...
0
votes
1answer
19 views

Bitnami Installation forcing me to flush caches while theming

I recently set up a Drupal 7 installation on an AWS ec2 instance with Bitnami. When I'm theming, or editing any kinds of files in the sites directory a regular browser refresh won't show the ...
0
votes
1answer
27 views

How to Style in Drupal [closed]

Please, I need help. I have a site design that has a totally different home page than the rest of the pages. The interior pages might present problems too, I don't know...everything in Drupal seems ...
0
votes
0answers
20 views

get list of css files of default theme from backend

is it possible to get a list of css files which will be using on default theme from backend. suppose, my default theme is 'Bartik' and theme-settings.php file have a function to view a list of css ...
0
votes
0answers
16 views

Theme: one or multiple behaviors?

I'm looking for a standard approach to attaching behaviors in the theme. Usually I add a behavior per component e.g. search form, mobile menu, etc. With CORE modules, there is usually just the one ...
1
vote
1answer
102 views

How to print out bootstrap menu?

I am using the Bootstrap module. In the code I can see this: <?php if (!empty($primary_nav) || !empty($secondary_nav) || !empty($page['navigation'])): ?> <div class="navbar-collapse ...
0
votes
0answers
8 views

Service Links as Fields

I've been trying to use the Service Links module in combination with Profile2 and so far the only way i've managed to get the links on Profiles is through a block. Unfortunately, as it's not part of ...
0
votes
0answers
10 views

Link module - display icons based on file MIME

I have a Resources content type, which has a Tutorial Links field which can contain unlimited external links to tutorials. For this, I am using the Link module. Instead of displaying the URL or ...
0
votes
1answer
47 views

Implement Menu block hook function hook_menu_block_tree_alter() to add/change/remove classes

I have installed the plugin Menu block and I am very happy with the result, but I'd like to change some classes in the structure. This is what I get right now: <div class="content"> <ul ...
0
votes
2answers
36 views

how to make $page['content'] stop replacing HTML

In my page (basic page content type) I have the following code in the body field <h3 class="blue-txt">Heading</h3> In my custom themes page.tpl.php I have <?php print ...
0
votes
1answer
24 views

Changing Zen theme Grid System

i'm using zen-7.x-5.5 as a base theme, the problem is that it's coming with 2 sidebars layout.. i searched in the documentation but i didnt' find a way to change it to 1 sidebar layout ( with main ...
0
votes
1answer
15 views

String overrides doesn't override certain Commerce components

It actually overrides everything except 'Order total', I do not understand how that component doesn't get overwritten by String overrides. Order total is in Checkout page. <table ...
0
votes
0answers
14 views

Change Omega4 Layout Based on Content Type via template.php

I want to set Omega4 Layout defaults based on Content Type. I am trying to use the following code, but the hook_omega_layout_alter doesn't seem to use the $node variable. What am I missing? I have ...
2
votes
4answers
54 views

How to include the same menu twice in a .tpl file

I am working on a responsive design for a site I am building and I currently am having trouble including the menu twice in the header template file. I need the menu displayed inside the content ...
1
vote
1answer
89 views

How can I a revert an overridden template to its default in a sub theme?

If a base theme overrides a certain template, how can I tell a sub theme to revert to the default template instead of using the overridden template? Of course I could simply copy the default template ...