drupal-themes

How to change sub-theme of zen to find files in other folders?

▼魔方 西西 提交于 2019-12-25 03:44:29
问题 Im using Zen as my base theme for creating custom themes in Drupal 6. When I look at the source code of my sub-theme, I see that zen are searching for css files in the sub-theme's folder, at the current state it looks for its css files in : /themes/zen/elementals/css/ how do I tell it to just search in /css folder ? thanks! 回答1: Look at theme-settings.php file of zen theme. Try to implement THEMEHOOK_settings() function in your own template.php 来源: https://stackoverflow.com/questions/5334048

How to get rid of Drupal CSS stylesheets?

回眸只為那壹抹淺笑 提交于 2019-12-22 04:08:24
问题 I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies to my HTML content both my CSS stylesheets and the CSS related to the theme chosen. I have also tried, without success, using the stylestripper module (installed in sites/all/modules). No matter what I do, additional CSS stylesheets are applied to

How to modify the drupal search templates?

蹲街弑〆低调 提交于 2019-12-11 07:51:00
问题 I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually use Drupal Template Suggests but for some reason when creating the files: search-block-form.tpl.php search-result.tpl.php search-results.tpl.php search-theme-form.tpl.php None of them seem to override the Drupal templates for some reason? is there anything special that i have to put in or anything i can test to see if they are working as everything i've tried so far has

drupal 7 custom content hook_theme output

大兔子大兔子 提交于 2019-12-11 07:29:16
问题 I have a custom module created in Drupal 7 and I want it to display some HTML content. Here is how I have did. But it is not working, what I do wrong? <?php /** * Implements hook_block_info(). */ function submenus_block_info() { $blocks = array(); $blocks['info'] = array( 'info' => t('The submenu zone') ); return $blocks; } /** * Implements hook_block_view(). * */ function submenus_block_view($delta = '') { $block = array(); $users = "edf"; $title = "sdfsd"; $block['subject'] = t('Submenu');

Drupal 7 hook_theme() not loading template file

丶灬走出姿态 提交于 2019-12-07 13:08:55
问题 I'm trying to get a very simple module to load a template file using drupal's hook_theme(). It's pretty much as simple as you can possibly imagine. function sectionheader_theme ( $existing, $type, $theme, $path ) { return array( 'sectionheader' => array( 'variables' => array( 'foo' => NULL ), 'template' => 'sectionheader', ), ); } The template is named sectionheader.tpl.php. The rest of the module is working as expected. I've cleared the Drupal cache. I've inserted a die("Debug") statement in

How to get rid of Drupal CSS stylesheets?

回眸只為那壹抹淺笑 提交于 2019-12-05 02:09:14
I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies to my HTML content both my CSS stylesheets and the CSS related to the theme chosen. I have also tried, without success, using the stylestripper module (installed in sites/all/modules). No matter what I do, additional CSS stylesheets are applied to my pages, completely destroying my layout. What is the proper way to achieve this? Why stylestripper

Drupal 7: Modifying menu HTML output?

若如初见. 提交于 2019-12-03 15:34:03
问题 I am trying to modify the HTML output in a Drupal 7 theme that I am creating. Basically, instead of the < li >s containing just plain < a >s with text, I want to include some additional HTML inside the < a >. I know that it's possible to modify the HTML created by the menus in Drupal. I can see the following call in page.tpl.php: <?php print theme('links__system_main_menu', array( 'links' => $main_menu, 'attributes' => array( 'id' => 'main-menu', 'class' => array('links', 'clearfix'), ),

Drupal 7: Modifying menu HTML output?

泪湿孤枕 提交于 2019-12-03 05:05:23
I am trying to modify the HTML output in a Drupal 7 theme that I am creating. Basically, instead of the < li >s containing just plain < a >s with text, I want to include some additional HTML inside the < a >. I know that it's possible to modify the HTML created by the menus in Drupal. I can see the following call in page.tpl.php: <?php print theme('links__system_main_menu', array( 'links' => $main_menu, 'attributes' => array( 'id' => 'main-menu', 'class' => array('links', 'clearfix'), ), 'heading' => array( 'text' => t(''), 'level' => 'h2', 'class' => array('element-invisible'), ), )); ?>