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

How to get main menu to highlight the link to the current page?

My theme, Riley, highlights menu item of the page that you're on. (for example). I suspect this is a function of Drupal and not specific to the theme. First question: is this generally true? If the ...
0
votes
1answer
30 views

Is there any theme record count?

Is there any theme record count? Like: "Showing 1 to 10 of 186 records". So that the user sees the number of pages and total number of records of a query (EntityFieldQuery). Something made my drupal ...
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
1answer
27 views

How to change color and sidebar menu without using themes

We have a number of different themes on our website as we have different departments with different color styles. However, the only thing that changes are the colors of the sidebar and which menu is ...
0
votes
0answers
11 views

Ability to pass data “up” from template_preprocess[whatever] to template_preprocess_page?

I'm using template_preprocess_panels_pane and I have custom css that need to be generated and inserted in the header depending upon data in the panels pane. I can do drupal_add_css from ...
0
votes
0answers
15 views

add custom db query in a default block [on hold]

I previously built a custom module which can list data from database.Now I added a new theme on my site.The theme has a default list block.I want to show the same data from database in the new theme's ...
0
votes
1answer
31 views

display results from a form in theme-settings.php

I've been working on a way to upload a background image for months and I finally got it to work. How do I display the URL to the image on page.tpl.php? It's a form called background_file. Here's my ...
1
vote
1answer
27 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
0answers
15 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
2answers
18 views

JS and CSS in hook_preprocess_hook()

In the project I am working on I have created a theme hook that renders a .tpl.php file: /** * Implements hook_theme(). */ function my_module_theme() { $theme['my_module_list'] = array( ...
0
votes
2answers
14 views

Node Teaser template in custom module

I have used given below code for node--[content_type].tpl.php (default) template file function MYMODULE_theme($existing, $type, $theme, $path) { return array( 'node__NODETYPE' => array( ...
1
vote
1answer
33 views

How to include multiple default themes on website?

We are using Aegir, we would like to use one core theme for all of our websites which handles common theming. But for specific thming for each site, we would like to handle inside of their custom ...
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 ...
0
votes
0answers
14 views

System settings form not saving weight with table drag

I am trying to do a table drag, and the table drag is working, but the weights don't seem to save on form save. Here's my form: function lextext_admin_settings() { $form = array(); $lextext_info ...
0
votes
3answers
60 views

Making a custom theme and want to know how to style first post different from the rest

After months of figuring out how to upload a background image, I decided to scrap that and use a solid color with the color picker. Now I moving on making a custom theme and it's very different from ...
0
votes
0answers
29 views

Drush command 'omega-wizard' could not be found

I want to create a sub-theme with Omega using drush but I get a couple of errors. I've been trying to solve these problems for a bit now and I need some help. I'm using OS X and XAMPP as my local ...
0
votes
1answer
35 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 ...
1
vote
1answer
16 views

Drupal theme customization [closed]

How can i programatically enable modules through a selectbox method? For example i have a list of modules in the site listed in checkbox. when a user selects a particular module and save the form, the ...
0
votes
2answers
11 views

Drupal Web Form put on the content

How can I move the Web form from the bottom of the content area to the top of content area? Where is the setting for this? Is it possible to move where the webform is displayed? The web form is in ...
0
votes
0answers
12 views

Change class only in full node with hook

How i can change class from col-md-8 to col-md-12 in content type blog when is full node not teaser with hook in template.php
0
votes
0answers
25 views

Print value from Views field & HTML into Colorbox Image caption?

I have created a view for an image gallery with the images using the colorbox field formatter so that they open up in a colorbox window when clicked. I would also like to display the values from the ...
1
vote
1answer
31 views

Variables in template files

In my .tpl.php template files, I have several links and names of external websites. I would like to print these as variables, which are defined in template.php. That way, if I have to change a link, I ...
1
vote
1answer
27 views

How to Split Regions

Is there any way I can split a region into 2 different regions. For example, in Garland theme I want to split the HIGHLIGHT block region horizontally into two regions.. is it possible ? Any help ...
1
vote
1answer
20 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
27 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
11 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
16 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
24 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
2answers
24 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
0answers
9 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
38 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
21 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
3answers
56 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
48 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
23 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
22 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
31 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
2answers
29 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
47 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
16 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
19 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
22 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
84 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
14 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
32 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
20 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
35 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
69 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
17 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 ...