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)

-8
votes
0answers
7 views

I quickly site side packer yeah have

I quickly site side packer yeah have a little bit guys freeway working make sure you free okay that day back more 3 back to top let go Kim no one keep one kid yeah on two different laugh until you ...
0
votes
0answers
13 views

How to add margin between columns with Drupal Bootstrap View Grid

I need help i'm try to add some margin between columns using i'm using drupal views bootstrap module the grid view but the columns are closed together how can i add margin between columns. i tried ...
0
votes
1answer
12 views

How to change Omega subtheme's layout for a view

I sense this can be done with Context etc, but it doesn't feel right to issue a few more modules for the job of a few lines of code. Something like the following has to fit this: function ...
0
votes
1answer
20 views

Extend Theme to Different Content

I've installed a theme on my site, and can't figure for the life of me how to extend the theme to different content. For example, comments are themed on the blog pages; however, when I add new ...
0
votes
0answers
20 views

Template destreoyed, Regions lost after Flush Caches

I did a Flush all caches - and all my Template is destroyed and my own made Regions disappeared, their content showed up as disabled, due to "invalid region".... It's a production site, it was ...
3
votes
1answer
39 views

What is the correct way to render content from custom content type?

I am new to Drupal and am realising that there are a number of ways to perform even the most basic task but it is hard to know which way is right. When rendering fields from a custom content type ...
0
votes
1answer
15 views

Image getting delete away by the cronjob later in drupal 7 using theme settings

i`m using system theme settings alter to add 4 images for theme, images are getting deleted /swept away by the cronjob later .trying using FILE_STATUS_PERMANENT images are not getting set as ...
0
votes
1answer
27 views

How to make a webform block specific template?

i would to make a custom tpl for a webform in a block.I get is ID but actually i can't it to works.what the way to do this ? what si the folder / files structure to do this ? i'm on drupal 6 and ...
0
votes
0answers
10 views

Open Atrium 2: Get back the old design

Is there a way to make Open Atrium 2 look a bit more like Open Atrium 1 (e.g. display icons for the sections)? We'd like to make it easier for our users to switch. Besides OA 1 looks friendlier in our ...
0
votes
0answers
23 views

How to use drupal function in simple php file inner drupal? [on hold]

I want to use $user and db_query in credit.php file. This file exist inner theme file.. here $user and db_query is not working. How to make any simple .php file to drupal file. I am using this code ...
0
votes
1answer
23 views

Check for IE8 in theme_preprocess_page function

I'm trying to use inline svgs for a number of logos and icons, and I was considering adding the inline svg code in a preprocess function. This seems like a good place to check for svg support (namely, ...
0
votes
0answers
16 views

Looking for a good CSS editing solution [on hold]

I have installed adaptivetheme and generate a theme myownadaptive. I would like to add my own style to this theme. I understand now that I should add my own css into global.styles.css What I want is: ...
0
votes
1answer
22 views

How to load a field from a user that is being viewed

I am looking to load a field from a user's profile that is being viewed.For example, I am looking at another users profile and it will load their associated field. I am programmatically adding a ...
-4
votes
4answers
53 views

Do drupal themes require CSS3?

Do drupal themes require CSS3 or can they just be HTML5?
0
votes
0answers
6 views

Drupal 6 url alias and full article view template

I am having the toughest time. Not sure if it is a permissions issue or just me. ( prob. just the user - ha ) Using Drupal 6 - I created a content type and a "view" for these "articles". My view ...
0
votes
0answers
19 views

How to send result to a theme form

Here is what I am looking for. I have a hook menu which calls a themed form to enter details. I have another hook menu which calls the records in a tabular form. Now what I want is to add a link to ...
0
votes
1answer
18 views

How to diable google fonts and other things like that

How do I configure my theme or Drupal itself from fetching data such as google fonts or anything like that? also some JS files that get transfer d as well.
0
votes
1answer
21 views

Adding class to image-link in render array

In the render array of an image with link, i tried to add the class 'colorbox-load' to the link, i.e. the <a> tag of the link, but i can't get the adding of the class to work: $node = ...
-1
votes
1answer
29 views

Theming the output of multiple image upload widget in node create/edit form

I need to theme the node create/edit page according to the user's specifications. To do so, I need to output of theme_file_widget_multiple($variables), I suppose. It gives out table format which I ...
1
vote
2answers
34 views

How to print a block in node.tpl.php only for admin?

What is the simplest code that checks if user is admin and then prints a block to that user in node.tpl.php? I have seen different examples, but they are all either complicated and deal with other ...
0
votes
2answers
31 views

Try to theme a specific page using template.php and a sub theme

I have a theme called 'progressive'. It has a sub theme called 'progressive_sub'. I'm trying to exclude items from being displayed from a particular page in D7 (latest as of 12.2.15). I have the ...
0
votes
1answer
22 views

Drupal 7 - Output taxonomy terms on a node?

Currently I want to output the taxonomy term of the current node I'm viewing. I have an Article content type and I created a view block placed it in the footer. Now in this view I'm using PHP Field ...
0
votes
1answer
32 views

image in newsletter does not apply image style (defaults to original size)

I'm using a simplenews template (simplenews-newsletter-body.tpl.php) to output with mimemail in html. Everything works as it should except that the image in my newsletter is always taken from the ...
1
vote
1answer
36 views

Create block in template.php

I have the feeling that I'm doing something stupid or missing something obvious... I want to create a block in template.php in my custom template but it is not showing in admin/structure/block The ...
0
votes
1answer
28 views

send user registeration mail in html format

I want to send any email of my site in HTML format, I install smtp , mimemail and mailsystem modules, and smpt configured correctly and test it(I check Allow to send e-mails formated as Html), also ...
1
vote
2answers
25 views

Print Primary and Secondary Menu Links separately

I have a main menu with primary, secondary and tertiary links. The primary links will be positioned top right of the page. I want the sub menus (secondary/tertiary links) to print in a separate ...
0
votes
4answers
87 views

Print Drupal 7 Field in node.tpl.php without labels or markup

In Drupal 7, you can render a field in a tlp.php file like this: But that prints it out with it's label and HTML. Is there a way to get just the raw value of the field. I know you can do the ...
0
votes
1answer
34 views

Passing variables to JS from theme folder .tpl files

I use many template files in my modules via hook theme. In order to pass variable to JS files I use the method described here: https://www.drupal.org/node/304258 in the .tpl.php files: $my_settings = ...
0
votes
3answers
45 views

Hide html / code based on content type

I'm using a block of code that shouldn't be displayed on certain content types (not blocks, but actual code). When I use this approach, I'm getting undefined variable and trying to get property of ...
0
votes
1answer
74 views

Making Panel-Col-last the first

I have a 2-column panel (Regular, not stacked). I've made it responsive and it appears allright in mobile view @media screen and (max-width: 519px) {width: 100%;}. The only problem is that my site ...
0
votes
0answers
26 views

Custom block.tpl not affectiong all blocks

I have a custom theme and in the templates folder I have copied block.tpl and changed H2 to H3 and added a CSS class to the content div. Changes are taking affect and drupal is loading my block.tpl ...
1
vote
1answer
19 views

How to print and/or manipulate individual image attributes and suppress width and height via the image.html.twig template

I had to get rid of the width and height attributes in my images and wanted to learn better the possibilites of Twig in Drupal.
0
votes
0answers
14 views

context condition for field group multipage

I have a node form configured with field group multi page, my node form is outputted as a block on the front page. I want to disable(hide) the rest of my front page blocks when the user is on the ...
1
vote
1answer
14 views

field.tpl.php available variables

According to the documentation, these are the available variables: $items: An array of field values. Use render() to output them. $label: The item label. $label_hidden: Whether the label display is ...
0
votes
1answer
43 views

How to display plain html

I have inherited a drupal site with a few modules. They're not exactly written according to best practices... they return html code instead of renderable arrays. In other words, they do this: ...
3
votes
1answer
54 views

How can I replace a node reference field with a node edit form?

I have two content types - parent and child. There is a one to many relationship (many children to one parent). I am migrating this content, and the current situation is that that node reference field ...
0
votes
1answer
16 views

Display POA in Ubercart 3 / D7 for products of zero dollars

I'm building an ecommerce site where some products are price negotiable and want a way to add POA instead of a listing a price when a product is displayed. I'm kinda surprised at how hard this is to ...
0
votes
1answer
34 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
17 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
13 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?
0
votes
3answers
62 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
17 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
22 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
28 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
30 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
29 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
8 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
11 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
17 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
48 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){ ...