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

Layering a view on top another

I'm wondering is it possible to have a bootstrap views tab and within that tab content(images) with bootstrap views grid layout, therefore each tab would have images in grid layout.
0
votes
1answer
23 views

how to insert image inside an existing image

hi i'm working on my sample site.in that I've done the background image blue sky into the respective region how can i add one more image in center of that like below ? and more over I've to add an ...
1
vote
1answer
13 views

Changing value of a field before rendering in Drupal 7

I am trying to change the value of a field. I need to add a dynamic class on-the-fly, based on some complext context, and I need to warp the text value with the span-class-stuff. But I haven't been ...
0
votes
2answers
22 views

Customizing a Views HTML

I'll start off saying I'm pretty new to Drupal. I'm trying to customize the way a view displays. I want it to look like the Industry News section on this page: ...
0
votes
0answers
16 views

Programmatically get input format in field template

We change some output in our field.tpl-files for body fields, depending on the input format that was used on the node (which itself depends on the user being able to modify it). Now this worked by ...
0
votes
0answers
14 views

Explanation needed about webform templates

I would have some explanation about the use of existing webform's templates. As i know, these tpl are possible for a webform: page-webform-ID.tpl.php node-webform-ID.tpl.php webform-form-ID.tpl.php ...
0
votes
1answer
23 views

How can i disable java script in drupal themes or drupla it self?

How can I disable java script in drupal themes or globally?
0
votes
1answer
21 views

Multiple user-selected front page layouts

I would like my site builders to be able to select from three unique front page layouts. The selection can be made either through config or through theme settings, but not require any coding. The ...
0
votes
0answers
7 views

Add class to empty Panels regions

How can I add a css class (.empty-panel-region) to Panel's regions that don't contain any panes?
-4
votes
1answer
25 views

why two login blocks are showing? [closed]

I am new to drupal. I am working on a website called blackfairy..I have my html template and I am trying to convert it to drupal theme..But when I type http://localhost/shop-around/user two login ...
0
votes
0answers
28 views

How to add margin between columns with Drupal Bootstrap View Grid

I need help I'm trying to add some margin between columns using drupal Views Bootstrap module the grid view but the columns are closed together. How can I add margin between columns. I have tried ...
0
votes
1answer
13 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
22 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
46 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
16 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
29 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
12 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
24 views

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

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
24 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
1answer
28 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
20 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
30 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
35 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
32 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
37 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
31 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
27 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
108 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
42 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
75 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
22 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
45 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
17 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
14 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
67 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 ...