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)

0
votes
2answers
16 views

Set a theme for a single content types edit page

How do you set the theme for the edit page for just one content type on your site? I am using bootstrap for non-admin pages and using the default seven for the admin pages. So basically I need to ...
0
votes
1answer
12 views

How to get the managed_file progress bar working in a custom theme?

I'm trying to get the managed_file progress bar working in a custom theme. Right now, when I start an upload, the empty progress bar widget appears in the form, but it doesn't visually update while ...
0
votes
1answer
51 views

Drupal 8 Menu Tree issue in my contrib theme possibly because of “Convert menu tree building to a service.”

Previously, in my Drupal 8 contrib theme, I was rendering the full menu tree as: function gratis_preprocess_page(&$vars, $hook) { // Build the main menu links tree. $vars['primary_nav'] = ...
0
votes
1answer
11 views

Create renderable nested tree array like Menu Tree or Taxonomy Tree

I am getting a nested array with children property from the WebSerice. I want to create the render able array so that I can use "drupal_render" function to render final HTML. I looked at the ...
0
votes
1answer
20 views

Change specific block look & feel

I have a block like this: <section id="block-locale-language" class="block block-locale clearfix" data-thmr="thmr_23"> <h2 class="block-title">Languages</h2> <ul ...
0
votes
1answer
14 views

Overwrite login page

I'm trying to overwrite the FULL LOGIN PAGE, not only the login form! I've tried this function your_themename_theme() { $items = array(); // create custom user-login.tpl.php ...
0
votes
1answer
22 views

File upload error. Could not move uploaded file

I am getting this error while changing the logo of my site, i have tried changing the permission through hosting provider, added php_value safe mode 0 in .htaccess file and even added one file in ...
0
votes
0answers
10 views

Customise Views RSS output

I am using Views to create a custom RSS feed. My view has several fields, and I want to wrap these fields in RSS tags to customise the output of the feed. I have created an RSS style view. In the ...
3
votes
2answers
101 views

How do I make a Drupal 8 theme require Jquery (for anonymous users)?

I'm creating a theme for D8 called 'herchel'.I'm trying to get this theme to require jquery on all pages (D8 doesn't load Jquery for anonymous users by default) Looking through the what little ...
1
vote
1answer
25 views

Keep custom theme when using AJAX submit

I am using the following code to switch to a custom theme based on the URL function job_agent_custom_theme() { if (arg(0) == 'vista') { return 'vista'; } } This works great and will switch ...
0
votes
0answers
14 views

Theme settings override (image upload)

I'm using Drupal 7. I'm trying to override an existing theme to let the user control the web site banner in the header via theme preference. I already did this in theme-settings.php : ...
0
votes
3answers
35 views

simpler theme/view mechanism/function?

Is there a module that provide a base/framework for simpler/faster rendering of a view(in MVC terms).. a function like render_tpl('path/to/my/tpl/myview.tpl, array('var1'=>$var1, ...
1
vote
1answer
15 views

How can I defined regions like default admin theme (Seven)? [closed]

For example, visit admin/structure/block/manage/search/form/configure config search block, in "Region settings", can see Seven (administration theme) "Dashboard(sidebar)" selected, but I find Seven ...
1
vote
2answers
85 views

How do I customise the header and footer using a page template for a particular content type?

I have a content type. I want to customise the node pages for this content type, I've used node--[content-type].tpl.php but I need to use a page template to customise the header and footer and ...
0
votes
0answers
20 views

What template or field theme function controls fields inside of a fieldable panels pane?

I have a field_slides inside a fieldable panels pane. I'm trying to remove all of the default divs, classes, attributes etc. I thought I could accomplish this using theme_field__slides() or just ...
0
votes
0answers
6 views

Bartik distorts user photo in photo/username/date line (in posts - OK in comments)

I have set up a thumbnail (100 x 100) image style in administration/configuration/media. I checked the 'user pictures in posts' box and the 'user pictures in comments' box in Bartik (theme) ...
-2
votes
0answers
13 views

Commerce attribute widget labels inside select list [on hold]

By default labels are either inline or above.
0
votes
1answer
15 views

Adding a CDN asset to drupal theme via info file

Just as the title suggests...I tried using an absolute path: stylesheets[all][] = 'http://fonts.googleapis.com/css?family=Lato:300,400,700,900' This doesn't work...how do I add this to a theme?
0
votes
1answer
43 views

How to quick start sub-theming in Adaptive Theme?

I have a question. I'm a little confused on if I should copy the entire contents of the "adaptivetheme" folder to create a sub-theme, or if only the "at_subtheme" folder should be copied. I'm ...
0
votes
1answer
33 views

how add js files to create a responsive theme?

is possible to add these files http://alvarotrigo.com/blog/fullpage-jquery-plugin-for-fullscreen-scrolling-websites/ in a theme? I created from scratch and from Zen without success. some how i think ...
0
votes
0answers
19 views

Uploading a new theme into a site specific themes directory

I have recently set up a multisite installation of Drupal 7. In the sites directory, I have the all/ default/ and individual sites (for example, demo1.example.net and demo2.example.net). Everything ...
0
votes
0answers
25 views

Why is my theme's CSS affecting the admin area?

So my conundrum is that my sites front-end theme is affecting the admin area. I thought the concept of having a separate admin theme was to avoid this, but alas this doesn't seem to be the case. I've ...
0
votes
0answers
6 views

Override views_mini_pager function

I am trying to override theme_views_mini_pager function. I have a custom theme which is called dgd7. In the file site/all/themes/dgd7/template.php , I added a function which is called ...
0
votes
1answer
17 views

Forms - Clone form with different url + theme

I have a content type which can be created by admins and regular authenticated users. Now i would like to create a separate form url like /city/create for authenticated users instead of the standard ...
0
votes
0answers
33 views

How to include my module “menu_block” into my theme

i'm trying to learn drupal using a new site under the production website of my company. I'm inheriting the same modules of my production website but i want to change only the html part of the module ...
0
votes
2answers
19 views

Drupal 7 - theme default node view

I would like to know the recommended way to re-theme the default node view for a certain content type. E.g. http://dev.mysite/en/node/6547, now shows a 'list' of content fields. We would like to ...
0
votes
0answers
11 views

Different theme settings ( not theme ) based upon path?

I'd like different users to be able to control the theme settings for different parts of my site. However I don't want to implement a subtheme for each path as there are so many it might get out of ...
1
vote
2answers
24 views

Drupal 7 Private Files - How to override security in custom module

Is there a hook to override access to images stored in the private file system when theme_image_style is used to output the image?
1
vote
1answer
29 views

Show links only to sub menus items, not to parent menu

I added some links to Main menu and created sub links for it. Now the problem is that I've to give url to the parent menus of sub links. I want it to be disabled. Links should be for sub menus only. ...
0
votes
2answers
29 views

Accessibility : Broken Skip Link Error on “Skeleton” Theme

I installed the "Skeleton" theme and found it has a "Broken Skip Link" by using "wave.webaim.org". How can I find and fix where is this "Broken Skip Link"? You can find this Skeleton demo at ...
0
votes
0answers
13 views

Is there an updated (living) list of render types?

What I am looking for is '#type' => .... I have found a list of available render types in system_element_info() in the api, however what I found is incomplete and the options are either none ...
0
votes
1answer
19 views

Omega Theme Renders a Container inside of a Container

I currently have a view listing a set of products via rendered entities as Teasers. However the Omega Theme is taking each teaser and adding the container-24 class to it eliminating the ability for me ...
4
votes
1answer
167 views

Two different versions of the same base theme in the same site

I'm wondering if it's possible to get two different branches of the same theme into the same site, both to be used as base themes. Specifically I'm talking about Omega 7.x-3 and Omega 7.x-4 in the ...
0
votes
0answers
33 views

Boilerplate Theme; image not scaling down responsively

If i input an image in a page via the Body text field with an [img] tag, When viewing and resizing the page, the image scales down in proportion. HOWEVER, I have a store with products and an image ...
0
votes
1answer
22 views

Fatal error: while enabling AT theme

I tried to enable AT theme and now have a white page with the error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in ...
0
votes
0answers
58 views

How to insert Google Tag Manager code into pages with variable account value

I need to insert the Google Tag Manager snippet code into each page just after the opening <body> tag. This is fine, except I would also like the user to specify the account number in an admin ...
-2
votes
2answers
22 views

How to create a custom page template suggestions for a node type?

My code like this. But get Error!!!!! Where the wrong??
1
vote
0answers
27 views

Whats the proper way to preprocess field collection items to add first and last class names?

How to add 'first' and 'last' class names in addtion to 'odd'/ 'even' for field collection items in preprocess functions?
0
votes
1answer
27 views

Add css to theme function

I'm declaring, on my module, a custom theme function: <?php function monitor_chart_theme() { return array( 'chart_monitor' => array( 'template' => 'monitor_chart', ...
0
votes
1answer
40 views

SQL queries in theme functions - is it a bad practise? [closed]

I know, that calling SQL queries in template files is bad practise. But is it bad practise also for theme functions? For example when my form is rendering with my custom theme function: <?php ...
0
votes
0answers
12 views

How do I make a tab active with Barik theme?

Should I do it in css or jquery? Not sure why it's not something done by default.
1
vote
1answer
29 views

Theme settings doesn't work

When i dpm that $vars, in classes key, there is no r_style class, whyyyy? I tried clear cache through devel module, but still the same, what i am doing wrong? name = JH Template core = 7.x engine = ...
0
votes
1answer
36 views

How to copy blocks placement and settings between themes?

How can I copy blocks placement and settings between themes? I've found this module: https://drupal.org/project/blockregion and this code to do it in the database. But both are for D6. How can I do ...
0
votes
0answers
21 views

entity_metadata_wrapper problem with texts from editors

I use entity_metadata_wrapper to extract fields of a content type in node pages and then I theme them. look at this code $node = $variables['node']; $wrapper = entity_metadata_wrapper('node',$node); ...
0
votes
1answer
43 views

Why is my content showing up below other blocks?

I did some work on my site and now i realize that even though my main page content block is weighted to be at the top, it shows below everything else within that area. Is there any way someone can ...
0
votes
1answer
19 views

How can I theme a single value from a multi-value theme?

I'm trying to output a single piece of text from a multi-value text field (unlimited # of values) in my node template and I can't for the life of me figure out how to do it AND apply the THEME to it. ...
0
votes
2answers
52 views

Benefits of using a base theme?

In building a new theme (for a bespoke build, rather than distribution) is it essential to start with a base theme? If I look at the Zen theme, for example, I would scrap most of the HTML and CSS in ...
1
vote
0answers
32 views

field_view_value returns null for boolean field

I have a custom field field_sold which contains a single boolean value. I'm trying to use the following function to retrieve the content of the field, but it always seems to return null: function ...
0
votes
0answers
16 views

Upgrade Drush from version 6 to version 7 (of Drush) [duplicate]

I am using a Windows 7 PC with xampp installed and have a drupal 7 website in place using an omega 3 theme i have created which works fine. My goal now is to create a sub theme of omega 4 (i have ...
0
votes
1answer
22 views

Can Panels just be uninstalled if you want to switch themes?

I used panels + panels everywhere with precision theme to build a website. I now rather want to use Zen theme with basic blocks. I wish to keep the content types with their fields. If I uninstall ...