Questions tagged [drupal-theming]

In Drupal terminology, "theming" is rendering or modifying the HTML markup produced by a module or a theme.

Drupal theming system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup. For this system to work, modules, instead of writing HTML markup directly, need to return render arrays, which are structured hierarchical arrays that include the data to be rendered into HTML (or XML or another output format), and options that affect the markup. Render arrays are ultimately rendered into HTML or other output formats by recursive calls to drupal_render(), traversing the depth of the render array hierarchy. At each level, the theme system is invoked to do the actual rendering. See the documentation of drupal_render() and the Theme system and Render API topic for more information about render arrays and rendering.

Reference

822 questions
0
votes
1 answer

Customize language link in Drupal 7

I am coding multi-languages web site with Drupal 7. Does anyone know how can I customize the language links like adding lang. flag, changing color of links and so on? thank you .
user1865552
0
votes
1 answer

Invoke a block from a template file with arguments

I have written a custom module which creates a block. I invoke the block from a template file using the following code. $block = module_invoke('my_mod', 'block_view', 'block_1a', $an_argument); print $block['content']; I need to access…
rix
  • 10,104
  • 14
  • 65
  • 92
0
votes
1 answer

Drupal 6 Block Theming

I may be barking up the wrong tree but... I've got a section of content for a website which is a list of several blog articles but the design to be implements shows the first 5 rows having an image, title & teaser and the following 10 items showing…
0
votes
1 answer

drupal 7 form theme function not being called

I'm trying to register a theme function for a simple form in a custom module, but the theme function is not being called. I just get the basic form. Here's my hook_theme(): function kss_membership_theme($existing, $type, $theme, $path){ $items…
user497587
  • 45
  • 9
0
votes
2 answers

Thumbnail Carousel

I am building a site that has a photo gallery. I am using colorbox to display the images when clicked. However, instead of having all the thumbnails on screen I was wondering if there is a way I can display them in a carousel effect. So for example,…
Darren
  • 105
  • 2
  • 14
0
votes
2 answers

Drupal: Completely override search functionality but use Drupal's template system (from a module)

I'm writing a custom Drupal 7 module which will completely override the search page and search method for a website. Here is what I have so far: /** * Custom search. */ function mymodule_search_page() { drupal_add_css('css/search.css'); //…
damd
  • 6,116
  • 7
  • 48
  • 77
0
votes
1 answer

Error when creating a custom page in Drupal 7

(Using Adaptive Theme) I want a new and custom user login page. So, put this code in my template.php: function mythemename_theme() { $items = array(); // create custom user-login.tpl.php $items['user_login'] = array( 'render element' =>…
Karmacoma
  • 658
  • 1
  • 13
  • 37
0
votes
1 answer

drupal 7 theming concepts extension in drupal 8 theming layer

i'm part time wordpress theme designer.Last week i started learning drupal 7 theming. My question is,will drupal 7 theming concepts extended in drupal 8 theming layer or drupal8 theming layer completely different from drupal 7 layer.Whether i…
0
votes
1 answer

Drupal customise block views_embed_view

Please help me find the block file from which the output has been retrieved below ? $output = views_embed_view('shop_mainhome', 'block_1', ''); I want to add some new elements to the block & style them.
progit
  • 123
  • 1
  • 2
  • 12
0
votes
1 answer

How to apply an extra class to a taxonomy ul?

In Drupal, I render a list of taxonomy-items in the node template, using print render($content['field_my_taxonomy']); It displays a list like:
0
votes
1 answer

Drupal 7 theme config

I am making custom theme for Drupal 7 with features (I mean those items in .info file). So I can use checkboxes to turn them on/off. Question is that I would like to have a feature to be configured as a string (text input) instead of checkbox. Do…
Alan Harper
  • 793
  • 1
  • 10
  • 23
0
votes
3 answers

If/then statement on field value in drupal 7

I'm trying to write a statment that looks at the value in a boolean field (field_solo) and returns one of two template files that I have created in Drupal 7. My field "field_solo" is correctly outputting a value of 0 or 1 and I have cleared the…
Dan
  • 1,709
  • 5
  • 15
  • 21
0
votes
3 answers

Drupal 7 Zen sub theme IE8 Responsiveness

Using the Zen starter theme for Drupal 7, I've created this site: www.nettango.com. Everything seems to work fine and I've been figuring things out as issues come up. However, I've been trying to get IE8 to respect the responsive styles. Here's what…
0
votes
1 answer

Create page of blocks only / Create a node of blocks

Sometimes I use a basic page as a place holder for the purpose of creating a node to hold blocks. So I create a basic page and link it to a menu, then I use the blocks interface to configure certain blocks to display on that page only. The problem…
rix
  • 10,104
  • 14
  • 65
  • 92
0
votes
1 answer

Meta Head title on Drupal front page

For some reason I didn't change the front page URL on the home page of one my drupal sites and it's a bit late to change it now (timings mainly). Does anyone know how to change the head meta title on the front page in Drupal 7? This is driving me…
ShambalaG
  • 356
  • 1
  • 7
  • 21