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

“This version is not compatible with Drupal 8.x and should be replaced.”

The below theme files, which are the only files I have in my theme folder called 'Lychee', throw the error (in the 'Uninstalled themes' section of /admin/appearance): This version is not ...
0
votes
1answer
13 views

“Disabled” regions re-enable after navigating away and back from module page

I have a form module that I would like to have on its own page, with no header, footer, etc.. I thought I was successful with adding hook_menu() and a page callback to render the form's block, then ...
0
votes
0answers
5 views

Insert code in views-view-unformatted.html.twig for specific rows in views

Twig template - views-view-unformatted.html.twig: #} {% if title %} <h3>{{ title }}</h3> {% endif %} {% for row in rows %} {% set row_classes = [ default_row_class ? 'views-row', ] %} ...
1
vote
1answer
22 views

How to render a views title in .tpl file?

I embed a view in a .tpl file but it doesn't show the title. It only shows the content. How to render the title of the view? I'm using the code below: <?php print views_embed_view('dummy'); ...
0
votes
0answers
20 views

How to change the fluid width to fixed with in Panels everywhere?

I am using the AT Panels Everywhere theme and its ATPanels Everywhere Site Template. However, apparently it overrides the At panels everywhere theme because the width seems to be fluid and not fixed. ...
0
votes
1answer
22 views

Add html to wrap views programaticly

I need to wrap field in views. I use views with module Responsive grid and have this html. <div class="services"> <div class="row"> <div class="col-xs-12 col-md-3"> ...
0
votes
1answer
18 views

Theme a form function in drupal 7 [duplicate]

I would like to theme a form function suppose comment_admin_overview. I am trying to theme an drupal core form ie., comment_admin_overview. I would like to change the comment listing page to a design ...
0
votes
2answers
40 views

How to add a span before a tabs item?

I would like to add a little icon before the tab item 'Edit'. Firebug shows that the default code looks like this: <ul class="tabs-primary tabs primary"> <li class="tabs-primary__tab"> ...
0
votes
0answers
28 views

Taxonomy term page $content is empty but shows up later

I have a taxonomy override page called taxonomy-term--listing-category.tpl.php. As far as I'm aware I'm supposed to (as per documentation) use <?php render($content); ?> when the part in my ...
1
vote
1answer
26 views

Why in any click, send me localhost panel?

I use WampServer, and just installed a theme drupal (jollyany,) in my localhost, but, when i click to explore the site, this sends me localhost panel, as the image I try to see what happens when i ...
0
votes
1answer
39 views

How to add <meta http-equiv=“X-UA-Compatible” content=“IE=edge”> to the header

I'm attempting to figure out a way to add <meta http-equiv="X-UA-Compatible" content="IE=edge"> to the header of my pages. I've heard that you could add it in your theme settings but I ...
0
votes
1answer
27 views

How to redirect search result page in drupal

Here, I am working in drupal Commons plugin. I already customized search form in that drupal header.Here i include modify search form in custom theme: function mytheme_form_alter(&$form, ...
0
votes
0answers
14 views

Custom Blog Theme

I'm not that experienced with drupal but I know some web design/dev. I have created a mockup using html and css of how I want a blog page to look. How do I make it that when someone adds a new blog ...
0
votes
0answers
19 views

Using different jQuery version on D6

after long search about this on Drupal website, i can't use 2 differents versions of jQuery in my new theme. I'm using jQuery update to get the 1.3.2 version, and i add the last one via : <script ...
2
votes
2answers
41 views

What is the best way to add my custom PHP functionality to a Drupal homepage?

I have a custom PHP application I've written that accesses an API via SOAP, processes some data from the web service, and outputs an HTML table with the results. I'm an experienced WordPress developer ...
0
votes
1answer
16 views

How do I override/theme Views REST Export display field?

I have a REST Export view display setup in Drupal 8, delivering node fields. The challenge: I want to theme/tweak/alter the output of JSON or HAL_JSON for and image field. Currently, it's rendering ...
1
vote
1answer
37 views

Is it possible to combine a Bootstrap theme with an existing custom Drupal 6 theme?

Is it possible to combine a Bootstrap theme with an existing custom Drupal 6 theme? I want to use Grayscale in my Drupal 6 website. But I already have an existing custom theme and I am not sure if I ...
0
votes
1answer
31 views

How to customize the <title> tag

I have downloaded nexus free theme and I want to change the title in all pages of my site. Is there a way to do it editing the template.php? thanks...
0
votes
2answers
66 views

Disabled AJAX paging with embedded views when used in Views template files

I am using a View in two different pages: page--front.tpl.php and views-view-grid--inside--page-1.tpl.php which is a custom display of a view. This is the code that is used in both of these print ...
0
votes
0answers
12 views

ShareThis button directly in tpl.php files

I only need to show custom button for sharing on nodes, but I need to put a different button on a lot of places (block quote, view result, image in node...) and to share just that part (probably with ...
0
votes
0answers
10 views

How to link event calendar and event registration form together in drupal 7.37?

I need to set up an event calendar.Whenever a new user comes and click onto the date of the event ,it should navigate the user to the event registration page(register for an event). I used entity ...
1
vote
1answer
30 views

How to change the positioning of Drupal blocks when a theme is enabled?

I am developing a Drupal 7 theme. I want to change the position of the blocks when a user set my theme as default. In my theme the main menu is positioned in left sidebar. Suppose the current theme ...
2
votes
1answer
88 views

Move required span of fields outside the label

Normally in Drupal if a field is required, the Asterisk sign would render inside the <label> tag in a <span>. for some reasons I'd like to move the span outside the <label> and ...
0
votes
1answer
17 views

Override Taxonomy Pages without entire page override

I need to override Taxonomy page (page--taxonomy--term.tpl.php) and wondering if it's possible to just override the content section of the page instead of the whole page. I don't want to print all ...
0
votes
1answer
23 views

override the default url of a page

I want to override the default URL of taxonomy pages so that, if I have pizza as child of food the URL become like this: taxonomy/term/food taxonomy/term/food/pizza or taxonomy/term/drinking ...
3
votes
4answers
127 views

Hide specific sections on admin configuration page

I wondering how I may hide some sections on the administration configuration page? I would like to hide some sections entirely for instance the media section and then only remove certain items for ...
0
votes
1answer
10 views

Override Entire Module Page using Template

I would like to override the entire page created by my custom module, I've used the hook_theme function but my template only affects the markup within the content region, I need to define the markup ...
0
votes
0answers
21 views

View theme override in drupal 8

I am new to drupal 8 and i need to override a views template. So, for that I have enabled theme debug in services.yml to view the twig template suggestion name. This is my view theme debug. <!-- ...
0
votes
0answers
14 views

Rendering vote / up down counts in custom node template drupal up down votes module

I'm using Voting API and Vote Up / Down module for drupal 6. I'm trying to render the total upvotes - downvotes ( points ) with in the node template. according to the module readme - <?php // ...
0
votes
2answers
27 views

Custom node Template for script tags

I wanted to add script code to implement "LiveChat" functionality on just three pages of our website. So, I wanted to add one script code given by our LiveChat agency into three webpages of our ...
0
votes
0answers
48 views

HTML output of whole page

I am trying to generate html output of whole page and then pass it to response array.I am doing something like this: $page = array( '#theme' => 'html', '#page_object' => new ...
0
votes
2answers
22 views

Theme div.item-list of views pager?

How can I theme the div with a class of item-list that appears around a views pager? All I need to do is add an additional class to this div when it surrounds a pager. I can find lots of ...
0
votes
1answer
32 views

Drupal gives `Notice: Undefined index: highlighted in include ..` error during theme creation

So, I have a fresh instal of Drupal 7.34 and decide to create a simple theme. I created a folder in /sites/all/themes/samayo and in it, I placed a screenshot.png, style.css, samayo.info inside ...
0
votes
1answer
32 views

Bootstrap sub-theme doesn't work [closed]

Hi I am new to bootstrap for drupal please bear with me. As per video reference i was installing bootstrap theme and module. Then i was trying to create sub theme i was download and copy bootstrap cdn ...
0
votes
2answers
87 views

Adding script conditionally

In the module I am developing I need to add script which require jQuery.The will be added depending on configuration settings. Hence I am using template_preprocess_module(&$variables) where I am ...
0
votes
1answer
12 views

hook_theme_registry_alter caches

this function caches the output, so it doesnt work if I want to change dynamically between two template files. For example user-profile.tpl.php and user-profile-project.tpl.php Code: function ...
1
vote
1answer
25 views

How do I create separate node/add forms for different uses and for the same content type?

I am using the agreservation module for a room reservation system/events calendar. As a result, the reservation content type has a large number of fields to accommodate info on speakers, contact info ...
1
vote
1answer
46 views

Page Caching wrong CSS

got a weird issue I was hoping someone could help with. I have a site that uses multiple subthemes, with different ones being served depending on url var. IE, subsiteone.mysite.com, and ...
0
votes
1answer
22 views

How to add extra class in main menu in drupal 7

Here, I working in creating custom theme in drupal 7.I am struggling to create main menu with drop down.Here i create menu with custom code is <?php $main_menu_tree = ...
0
votes
0answers
13 views

How to add a custom theme for managed_file type image preview?

I want to preview the image uploaded by managed_file type form api. Currently its showing the image title and a link to image. I've used theme function to alter the current html, but it doesn't seems ...
2
votes
2answers
109 views

template.php stop js on admin pages

I am using the following to put js on my site... drupal_add_js(drupal_get_path('theme', 'MYTHEME') . '/js/custom.js'); But I have noticed that this is also adding the js to pages like update.php ...
0
votes
1answer
37 views

How can I serve different view blocks based on media queries?

I have 4 view blocks that I want to show up as carousels on mobile. I'd like to be able to clone them, turn the clones into carousels with this module https://www.drupal.org/project/slick, then serve ...
0
votes
0answers
47 views

How to theme a paragraph bundle with a template file

I am using the paragraphs module version 7.x-1.0-beta6 I have a bundle with the machine name: text_buttons In the paragraphs module there are two theme suggestions: paragraphs-items.tpl.php ...
0
votes
1answer
18 views

Assigning global var to session variable?

This must be simple. I want to assign the user name to a SESSION variable, yet this is not working. $_SESSION['loveleytest'] = $user; $_SESSION['thelovelytest2'] = $user->name; What ...
0
votes
1answer
40 views

How to make a relation between nodes in drupal 7?

I need to create a relation between to nodes in drupal 7 without taxonomy.. because I don't have taxonomy option for drealty_listing.. And after I need to create a view regarding these relation.
0
votes
1answer
17 views

How to display a BACK button but ONLY if the user came from somewhere else on my site [closed]

I'd like to display a BACK button on my node--resource.tpl.php file but ONLY if the user came to the node from another part of my site. If they copied and pasted the URL for the node directly into ...
0
votes
1answer
24 views

How can i add a page.tpl.php for a page type and a language?

I want to match a page--type-receipe.tpl.php for a page type but it doesn't work. I think the reason is the multi-language. The page.tpl.php work without any problems.
0
votes
0answers
8 views

Search text field shifts down to new line in Nav block

I enable the search module "core module" and then I place the search block in the Navigation region of my Bootstrap subtheme. In Firefox it renders it correctly. placing it just to the left and ...
0
votes
0answers
16 views

How do I get my CSS to stop resetting?

I am working on a site that I inherited from someone else (i.e. I didn't design the theme). I've made a bunch of changes in the CSS to make the site look better, and everything seems fine, but after a ...
0
votes
1answer
27 views

Theming of Entity registration form

I'm using entity registration module on a drupal 7 for events. I managed to enable the registration but I can't find out how to style the registration form. I tried to modify the form via css but I ...