This tag is for questions about themes hosted on Drupal.org. Don't use it to generally mean "this question is about a theme," when the question is about a theme's code, or when the question is already using a specific tag, such as "theming," "theme-template," or a tag specific for the used theme, ...

learn more… | top users | synonyms (1)

1
vote
1answer
17 views

Permission to display edit profile link

I'm customizing user profile page in my Drupal 7 site. I decided to remove menu tabs on the page by modifing template.php file with following code function ...
0
votes
1answer
20 views

How to put page-title inside of my content's first panel?

Using a custom theme, pretty basic (so far): <section id="content"> <?php if ($title): ?> <h1 class="title" id="page-title"> <?php print $title; ?> ...
0
votes
0answers
8 views

When creating new theme all blocks from main theme are automatically inserted

I'm using the domain access module to use different themes on different domains. I created a new theme. However when enabling it, all of the blocks from the main theme were automatically inserted into ...
0
votes
1answer
15 views

$page not targetting views block but $is_front is. Need help with trying to solve this in any way

I wrote this poorly the first time, more succinctly: I need a custom node.tpl for the same content type in the front page teasers, the node itself, and a views listing of that node in the sidebar on ...
2
votes
0answers
20 views

Installing Footheme

I submitted this as an issue to Adaptive Themes over a month ago and haven't had any response, so I'd like to ask the community for help with it. I've selected Pixture Reloaded as the theme for a ...
0
votes
1answer
19 views

How can I get a custom number of posts on the front page without views?

I need to have 16 nodes on the front page. Drupal only allows 1-10, 15, 20, etc. I'm using views now but it breaks the AJAX of the rate module.
0
votes
3answers
31 views

How can I seperate elements of content in page.tpl? [closed]

I need to separate the comments from the node. I tried <?php print render($page['content']['comments']); ?> and <?php dpm(['comments']); ?>. This is what I'm trying to do (partial ...
0
votes
0answers
7 views

How can I get the functionality of the search page form in a block?

I'm using this right now to get a search form in the page header <?php $form = drupal_get_form('search_block_form', TRUE); ?> <?php print render($form); ?> However when you go to the ...
0
votes
2answers
25 views

How can I print a text field's database value with devel so that it displays on all nodes?

I want just the text field's data without an of the "field-" divs wrapped around it. It's a link so I want to do something like <a href="foo.com"><?php print ...
0
votes
2answers
17 views

Content Region Not Displaying

I'm relatively new to Drupal and am just squashing bugs on my first site. I have a region that I declared in my theme.info file: regions[alert] = 'Sitewide Alert' and I have a block that has a ...
0
votes
2answers
40 views

Themes, blocks, and content … Oh my!

I am a newbie to Drupal/Acquia Dev Desktop. Please excuse me if this is a dumb question. I'm trying to grasp the relationship between themes (the one I chose is Corked Screwer), blocks, and content. ...
0
votes
2answers
37 views

appling different styles based on taxonomy

I have a site with 120 categories of content. I've used taxonomy to make these categories. now I need to have some different styles base on the taxonomy which is used in nodes. OK? how can I do it. I ...
0
votes
1answer
14 views

Override alter.inc in child theme

Bootstrap.js is breaking a menu plugin I'm using. It's called with this $bootstrap = $theme_path . '/js/bootstrap.js'; $js[$bootstrap] = drupal_js_defaults($bootstrap); $js[$bootstrap]['group'] ...
0
votes
1answer
16 views

Mark New Nodes in Views via Template

I have a portfolio view that displays all items in the portfolio. The fields are set via template so I do not have access to the fields area in views to select the parameter there, I have to do it ...
0
votes
1answer
23 views

How to theme regions in non-standard themes like Consilium?

So I'm stuck with a theme that is very difficult to work with because it is nonstandard. It seems like it would like to be Omega and put lots of functionality into the admin UI and out of template ...
0
votes
1answer
20 views

Custom theme function and template suggestion

I'm trying to create a theme function, with a template: /** * Implements hook_theme(). */ function mycustomtheme_theme($existing, $type, $theme, $path) { return array( 'custom_function' => ...
1
vote
2answers
28 views

Fetch data from database and show in custom block [closed]

I have created my own simple block.I want to show some data from user table of database of logged in user to the block.I want to show it programmatically and not want to use any module. How can I do ...
0
votes
0answers
11 views

7 - Theme settings default value for file upload?

I have a file upload field in my theme settings form... like this: $form['logo_2'] = array( '#type' => 'managed_file', '#required' => FALSE, '#upload_location' => ...
0
votes
0answers
13 views

TB Magz Theme Hit and comment count not working

I'm using the TB Magz theme, which comes with a hit and comment count. For some reason I can seem to link it with my site stats to make it work.
0
votes
0answers
15 views

Custom theme comment admin form

I have a module in drupal 6 which have a custom theme for the comment administartion page at /admin/content/comment. I want to convert it into drupal 7. I have tried using ...
0
votes
1answer
16 views

Change Dashboard Theme

I'm using the core dashboard. For roles that are not admin it is empty (permissions are set). I'm pretty sure that is because of the theme (other roles do not see the backend theme). So how can I ...
2
votes
1answer
56 views

Drupal custom page template based on the title of the page

I have the following page: About us Whose path is: site.com/node/6 Theme suggestions for the template files are: page--node--6.tpl.php page--node.tpl.php You should already know that it is ...
1
vote
0answers
11 views

links__system_main_menu in drupal not gettign called

I created a theme and the theme name is abc. I am trying to override the default menu in drupal. I have the following filed in the theme folder (folder name is abc). abc.info file and page.tpl and ...
1
vote
1answer
25 views

Custom Node Template not inheriting page.tpl.php

In my theme, I have page.tpl.php and page--node--1.tpl.php. When page--node--1.tpl.php is rendered, everything in page.tpl.php is lost. I only want page--code--1.tpl.php to replace the $content line ...
1
vote
0answers
11 views

Include custom menu in (mini)-Panels Everywhere

Converting a site from regions/blocks to Panels Everywhere: in my page.tpl.php I have a menu system like: <div class="menu_wrapper"> <nav id="main-menu" role="navigation"> <a ...
0
votes
1answer
26 views

How can I get the rendered html of a template into a variable? [closed]

I'm trying to send a HTML mail, probably using swiftmailer. I'd like to separate the body in a template like I do with the rest of the site, but I need to be able to "load" the template after it's ...
0
votes
2answers
48 views

Add content type to body class

I want to add a body class for the content type of each node. Drupal already provides this, but it isn't always consistent between the Node view, the Node/Add view and the Node/Edit view. This makes ...
1
vote
0answers
12 views

Change the #formatter of a field when printing it in a tpl.php file

In my node.tpl.php I have used KPR on a field. I notice that is has a lot of options like ['#formatter']. I would like to change these options when I print the field out in my node.tpl.php file. How ...
2
votes
1answer
44 views

Upgrade zen theme (7.x-3 to 7.x-5.5)? [closed]

Presuming I have zen-7.x-3.x + a sub-theme, how do I go about uprading to zen-7.x-5.x? Perhaps using drush? I am in awe of the people who wrote these pages: https://www.drupal.org/node/219527 ...
5
votes
2answers
112 views

Render a field contained inside of another field

I am using Drupal Paragraphs module that lets you create "bundles" of fields inside other fields. (It does this using entities). Each bundle has it's own tpl.php file. In addition, you can nest ...
0
votes
1answer
26 views

Order of preprocess functions in drupal

I have started learning drupal for few months. Now I'm doing some theming. I would like to know the execution order of pre-process functions.
0
votes
1answer
40 views

hook_preprocess_html in my module

I am having a content type with fields select list, js, css, and body. In the select box it list a number of templates to apply on the current node. I have these custom templates in the templates ...
0
votes
1answer
30 views

How to add Modal in Bootstrap Sub Theme

I am trying to make a sub theme based on Bootstrap 3 Drupal theme. I want to add a modal markup in every page. I can see in the base Bootstrap theme template files, there is a file called ...
0
votes
0answers
14 views

how to over-ride text box classname in drupal [duplicate]

By default text box class name is : class="form-text" i want to over-ride the class name, with some othername. how to over-ride ? Can any one give the suggestions.
0
votes
0answers
21 views

(WAMP multi-site set-up) Why are symlinked folders causing blocks to be disabled?

First question posted here, so bear with me. I'm working with a WAMP setup, Windows 8.1 + latest Drupal 7.x. One of my installations is a multi-site with several sites hosted within. My problem ...
0
votes
0answers
7 views

Search Results Templates Strange Cacheing Behaviour

I've been trying to resolve an issue with my search results templates. There are two scenarios that I could really use some help with understanding: I have no search result templates inside my ...
0
votes
1answer
16 views

Get the user theme

In my admin page, I have a text field, for which I want to set the default_value as the active theme. I am getting the admin theme. But my requirement is to get the user theme. Is there some how I ...
0
votes
1answer
25 views

Theme_hook_suggestions not working

I'm using hook_preprocess_node in a module. In that, I check whether the node type, and on satisfying the condition I'm doing a theme_hook_suggestions. My tpl.php files are inside my modules template ...
1
vote
1answer
13 views

Comments and Testimonials on Profile 2 Profiles

Is there a way of enabling either comments or a guestbook/testimonial functionality on Profile 2 Profiles? I've read discussions on here about implementing on User Account Pages but not for the ...
0
votes
1answer
20 views

Get rid of absolut links / redirects

I just got a project from a friend: D6, 6.34, 3 languages. Theme: Sharp Sales (via Fusion via Topnotch) So quite an ancient project and I first installed a local copy, but I can't login - it keeps on ...
0
votes
0answers
10 views

Slideshow pictures in Corked Screwer theme not responsive

I'm using the corked screwer theme and when the site is opened on a mobile device the pictures in the slideshow do not resize so that you see the complete picture, instead it looks like it is zoomed ...
0
votes
0answers
14 views

Disclaimer will not show up on first launch of site

Basically, all I want is a disclaimer/splash page to where it verifies youre 21 (just by clicking yes or no) before accessing the home page. I have the most upgraded versions of jQuery, Colorbox, ...
0
votes
0answers
32 views

Can't override links__system_main_menu in Drupal

Im working on my custom theme (modified stark theme) and there is a main menu in page.tpl.php generated by: <?php print theme('links__system_main_menu', array('links' => $main_menu, ...
0
votes
0answers
9 views

Calendar Module: Year view - Customise Month format

I am using Calendar Module to create a Year View. At the moment, the headings for each month are displayed in the following format: Thursday, January 1 I only want to display the month (e.g. ...
0
votes
1answer
14 views

Add body class to Node Display (to distinguish it from Node/Edit or Node/add view)

I want to add a body class that will only appear on the actual node display (e.g. mysite.com/node/1). I don't want this body class to appear on the node/edit page (e.g. (mysite.com/node/1/edit) or the ...
0
votes
0answers
16 views

How to process form in template when you aren't printing the entire form

I have a form where I am only printing out certain parts of it because I want to style around them. i.e. <?php print drupal_render($variables['form']['field_city']); ?> However, when I try ...
0
votes
1answer
126 views

Drupal site is compromised by backdoor [duplicate]

My Drupal site has been compromised. Although I applied all modules updates and update my Drupal core to 7.35, it is still compromised. What would the next logical step to take be?
1
vote
1answer
36 views

Views: Display filters as a HTML UL list of links with clean mark up

I have a View that has a filter which allows users to select nodes that contain specific taxonomy terms. I would like to display this as a HTML list of links (<ul>). How can I do this? ...
0
votes
0answers
8 views

No CSS class for “language selection” field type

I've notice Drupal 7 renders Language Selection field types with not an own class, which would be very useful while writing CSS style. <div class="form-item form-type-item"> ...
1
vote
1answer
42 views

programmatically create one bean block to the default theme

I am trying to programmatically create beans in a custom module using entity_metadata_wrapper. This is creating a bean for each installed theme. (In Drupal 7) Is there a way I can create only one ...