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

Drupal 8 custom page template

Is there any way to make custom page.htm.twig template in Drupal 8? By default Drupal generates some suggestions but none if it is something like this page--node--content-type.html.twig..
0
votes
1answer
19 views

Alter menu item markup in Drupal 8

I am trying to play around with Drupal 8 menu. How I understand now menu is a service, so how to alter menu output in Drupal 8? Is there any documentation? Because googling show no useful results. ...
0
votes
1answer
13 views

Custom preprocess_function does not fetch translated value of the content type

Drupal 7.34 core Using custom theme from Themebrain TB Sirate Multilingual setup works properly Content type has both English and Russian values English Language mode: When open/viewing a node, ...
1
vote
1answer
32 views

how to dynamically set query parameter on menu item

Hello I am a very experienced web dev who is brand new to Drupal and learning to build my first site in it. I have a very simple site I am converting from pure code (html, css, jquery, angular, ...
1
vote
1answer
35 views

Prevent replacing <input type=“submit”> with <button>

I am using Bootstrap 3 subtheme (7.x-3.1-beta2 ) on Drupal 7 for the administrative backend. It seems that the Bootstrap base theme replaces <input type="submit"> with a <button> ...
0
votes
0answers
16 views

Bootstrap strips off “type” and “media” attribute from tags <style> and <script>

Bootstrap theme uses the hook_process_html_tag in the file themes\bootstrap\theme\system\html-tag.vars.php which strips off the type attribute from the tags <style> and <script>. This ...
-6
votes
0answers
21 views

How to make a Minor change in Drupal? [on hold]

On my Drupal site I am using a theme that puts a log-in prompt on the main page. I want to move it to a separate page. How do I do that? Also, once I move or remove it, How would I go about still ...
0
votes
1answer
27 views

Drupal 8 include part template

I'm trying to use Drupal 8, with an own theme, due big structure differences for my requirements I have a page--front.twig.html and a page.twig.html, I would like to create template parts as used in ...
0
votes
0answers
35 views

How to create single page website in drupal? [on hold]

How to create single page website in drupal? With clean UI/UX With Big background Image Smooth scrolling Sharing an example: Sample site
0
votes
1answer
33 views

Creating custom tpl using drupal 7 [closed]

I'm trying to create custom tpl file with custom menu in drupal 7 but i cant able to achieve it with header and footer. I tried using hook_theme but it renders the page content but not the common ...
0
votes
1answer
22 views

How to change number of item per page in taxonomy page?

I have multiple content types. I want to change number of item per page in teaser mode and it is different for every content type. In admin/config/system/site-information we can change number of ...
3
votes
1answer
43 views

How to customize pager

I have a code, that outputs a standard pager: print theme('pager'); it outputs this: <h2 class="element-invisible">Pages</h2> <div class="item-list"> <ul ...
0
votes
3answers
48 views

Cannot apply custom CSS via theme settings

With Drupal 7.x and the Whitejazz theme, I want to apply custom CSS styles to some elements. This theme has the option to include custom CSS styles by specifying the path to the CSS file (in ...
0
votes
1answer
33 views

Search bar in main menu

I would like to place the search bar in the main menu on the right. I have seen several people on the net asking for this but never encountered some information I could actually use. I use Drupal 7 ...
0
votes
1answer
20 views

Display default image if the image isn't set

Case A custom image field has been added to the user entity, this field contains a default image for users, which should display if an user doesn't add an image. This field is used on multiple ...
0
votes
1answer
18 views

I would like to duplicate the default product layout grid in a Commerce Kickstart2 site

thanks for looking at my post! I have a Drupal7 Commerce Kickstart2 site. I recently cloned the default products page so I can create a new page with the same layout. It worked great except that ...
0
votes
1answer
22 views

Drupal Date Popup - Disable Selects, Display names only

I am looking for a way to remove the select dropdowns from the datepicker popup and only display the names of the months (and the year). As for the appearance it can be altered in datepicker.1.7.css . ...
0
votes
1answer
13 views

What methods are there to load more ROWS into a View display without reloading the page?

I have a basic View showing 2 node teasers at a time. I want to be able to have a button below it that says load more. Once you click it, it will load the next two. I know that there is the module ...
0
votes
3answers
24 views

Changing which content appears at which parts of site

I would like to make different divs in the template, that show up at different parts of a site: eg. div#1 shows at pages from Menu-01 + it's sub-menus; div#2 shows up at pages from Menu-02 + its' ...
-1
votes
0answers
13 views

Using source maps in Chrome for Zen subtheme

I know about the source maps but never used them. Can somebody point me out how to use source maps in Chrome with zen subtheme?
0
votes
1answer
23 views

Theme table with html [closed]

I am using custom module to insert and rendering data from Drupal Database.Is it possible rendering data using theme table in my custom div block
0
votes
1answer
33 views

Theming / modifying the markup of default search block form

I'm trying to modify the basic search block form that comes with Drupal 7 core. I have a custom theme and inside my templates folder I copied the search-block-form.tpl.php and modified it like so ...
1
vote
0answers
21 views

How to render twig template in module?

I'm adding some FB functionality for Drupal 8. Now I'm trying to add FB like button for articles. I have a twig template fblikebutton.html.twig, which looks like this: <iframe ...
0
votes
1answer
19 views

How to put two blocks inline in menu bar

In every theme I tested so far, when a block is added to Menu bar area, each block is always shown stacked in pile, my question is: There is a way to to make two or more blocks showing inline in ...
0
votes
1answer
12 views

Drupal 6 make a content edit form be in a specified theme

This is in Drupal 6. How to make a content edit form be in a specified theme? The administration theme is 'seven', and use admin theme for content edit. Site configuration: /admin/settings/admin ...
1
vote
1answer
38 views

hook_preprocess_html(&$vars) not firing

I am attempting to add css classes to the body depoendant on what the page contains. I am using the following... function myTheme_preprocess_html(&$vars){ //code here //eg. ...
0
votes
0answers
24 views

Why isn't this theme's script.js executing?

I've got an Open Atrium 2 (7.x-2.25) site, using the default Open Atrium Radix (7.x-3.5) theme. It uses the Mobile Friendly Navigation Toolar (7.x-1.0-alpha10+8-dev), but with a customised 'Open ...
0
votes
2answers
40 views

Webform theming field labels through webform-form.tpl.php

I'm theming a Webform I created by using a custom webform-form-[nid].tpl.php template. I've been able to render individual fields fine, but I'm having a problem with the date field which is split into ...
0
votes
0answers
26 views

node.tpl.php is not getting picked

I have a content type called news, I wanted to create a custom template for it because I had to embed a view just before the title. I created node--news.tpl.php and placed it in templates folder but ...
0
votes
1answer
25 views

add html to fieldset

I try to customize fieldset ABC that are inside drupal commerce checkout page. Markup looks like this <fieldset> <legend>ABC</legend> <div class="fieldset-wrapper"> ...
0
votes
2answers
14 views

How do you swap position of Order Total Components in Checkout Pane?

In Commerce Shopping cart contents checkout pane, how do you swap the position of order components? We want the Sales Tax to appear -below- the Shipping.
1
vote
1answer
33 views

Print node tags in html header

I am trying to print the articles tags in the meta area of the html. I am able to print them, however, they contain all the markup, where as I just need the plain text, comma separated list, much like ...
0
votes
2answers
32 views

How to add custom class in body tag on form submit?

I have created custom module with custom form, in which I have added input type select. Form submission is working fine, but I wanted set select option value as custom class for BODY tag.
0
votes
0answers
9 views

new created zen subtheme - content offpositioned

I just created a new zen subtheme using drush. Everything went smooth but I think there is some kind of problem with css - #content container is completely off positioned from page. I did not make any ...
0
votes
1answer
42 views

Enable bootstrap tooltip and popover (on a bootstrap based theme)

I'm using a theme based on Bootstrap 3. I want to use Tooltip and Popover features that come with Bootstrap but I couldn't. It's said on the Bootstrap Javascript page that: Opt-in functionality ...
0
votes
0answers
14 views

How to specify a separate theme for one specific panel page

Is there a way in Panels 3 (or an add-on that integrates into the Panels UI) that lets you specify a different sub-theme to use on a given panel page? I've looked through the UI for both the regular ...
0
votes
1answer
29 views

How to change order of custom module theme output?

I need to add some top links and sub top links . I altered hook_theme function and created two templates for these code is like this- function acts_theme() { return array( ...
0
votes
2answers
54 views

Drupal and Require.js not playing nice - double load of jQuery

I’ve been given a design library from a large cooperate client built utilizing Bootstrap 3 and Require.js. It’s very robust and well-built with the various scripts using Require.js to load jQuery. ...
0
votes
1answer
33 views

Content type node not overwriting the default node.tpl.php even if I have cleared all cache's

I have a content type with a machine name of 'empresas' after reading the documentation I should be able to just create a node--empresas.tpl.php to toy with the output of this in my theme. it seems ...
0
votes
2answers
36 views

Taxonomy terms manipulation on node.tpl.php

I wanted to print taxonomy terms on my custom node-mytype.tpl.php but what I want is not to print all the terms as they are. Each of these terms consists of 2-3 words. And I want to manipulate the ...
0
votes
0answers
12 views

theming ubercart checkout fields

I would like to add some extra html/text to one of delivery address fields - phone number. Wha twould be the best way of doing that? Would this code be of a ...
0
votes
1answer
19 views

preserve format of node body

for output display I used http://foundation.zurb.com/docs/components/accordion.html I have the following code: <section id="main-content"> <dl class="row accordion" data-accordion> ...
0
votes
1answer
34 views

Template.php - Hiding Specific Element on Node Edit

Drupal 7 Say I have a custom element being rendered out on my page.tpl.php (say it's named $custom_element in the below example), but this is also showing up on the Node Edit page because I want this ...
1
vote
1answer
38 views

Test if template files (.tpl.php) are used by theme

I've inherited a custom Drupal 7 theme with many template files. I'm sure lots of them aren't actually used by the website, and were part of the testing process. Is there a method to list which ...
1
vote
2answers
107 views

Getting the image URL from a field_image on a node

So I have this Node: object(Drupal\node\Entity\Node)[1862] protected 'values' => array (size=17) 'vid' => array (size=1) 'x-default' => string '7' (length=1) ...
0
votes
1answer
32 views

user-profile-edit.tpl.php not working for user#1 [on hold]

I am going crazy on this one :-/ I have overridden my user edit page with a user-profile-edit.tpl.php In my template I have: function mytheme_theme() { $items = array(); ...
0
votes
2answers
36 views

Combining fields in preprocess template

I want to combine two fields (say first name and last name) of a particular type of node so that the name displays correctly and I still have the individual fields to work with in different areas. I ...
0
votes
0answers
35 views

Is there a way to retrieve DRUPAL TWIG template's with core drupal 8 javascript functions like twig.js?

Is there a way to get precompiled twig templates from drupal 8 ? Example : Drupal.getTemplate('my-template.twig')(data); Thanks.
0
votes
2answers
37 views

Drupal aligning blocks and content next to each other

i have a view page and two blocks which i want to display next to each other. I want view content on left and two blocks on right, with one block on top and other just below it. But i am having ...
0
votes
1answer
16 views

Cannot load array items in Views template

I am currently struggling to alter the output of a field inside a specific view template. I have a Taxonomy term I want to render using a <h3> over the default <div> that Views default ...