Questions tagged [drupal-themes]

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, such as "zen."

A theme is a "skin" that lets you change the layout and appearance of a Drupal site quickly and without programming.

For questions about the Drupal theming system, use .

166 questions
2
votes
1 answer

Drupal: How do I have a module enabled for one theme, but not another?

I have installed the LogoTool module, but I only want it enabled in the custom theme used for the front end site, not for the Garland theme used in the administrative back end. How do I do that? Best regards, Egil.
Egil Hansen
  • 15,028
  • 8
  • 37
  • 54
2
votes
3 answers

How to make a custom layout in a subtheme from omega 4 Drupal show in appearance settings?

I've started working with the omega 4 theme in drupal, switching from omega 3. I've created a subtheme succesfully, and according to the documentation I want to make my own layout. I've copied over the "Simple" layout from omega to my subtheme…
2
votes
2 answers

Non-theme based Drupal development?

I run a design firm and have frequent need for Drupal development. I'm looking for a bit of guidance on a Drupal workflow that will work best for my company. My experience working with Drupal developers in the past has been great for back-end…
MDLG
  • 183
  • 1
  • 1
  • 12
2
votes
1 answer

Drupal 7 returning theme() to page

I am developing a module and I need to call different .tpl.php layouts from the theme directory per page.So what I currently have is: return theme('adverts_index', array('adverts' => $advertsThemeArray)); That is what I return in one of the…
Michael Guimaraes
  • 333
  • 1
  • 3
  • 20
2
votes
1 answer

drupal_find_theme_functions called on every page - is our theme registry being rebuilt?

Our new D7 site was running very slowly so I did some profiling with devel/xhprof and found that D7 was doing millions of preg_grep function calls within drupal_find_theme_functions() in theme.inc. This happened on every page load. It's my…
2
votes
1 answer

How do I properly add FILE field in drupal form via theme-setting.php?

I am building a theme with ability to upload custom background images but now I am stuck at a point. How do I properly add FILE field in drupal form via theme-setting.php and after that how can I get public url to this file in my template files??
Mohd Sakib
  • 471
  • 5
  • 11
2
votes
4 answers

Drupal error after creating new theme ,Undefined variable: hide_site_name and other similar error

I am new to drupal theme . I have created a direcory mytheme and added mytheme.info to it and copied other files from drupal's default theme directory . Now after editing the page.tpl.php, drupal is showing the errors below . Notice: Undefined…
Nitish
  • 2,695
  • 9
  • 53
  • 88
1
vote
2 answers

Custom region does not show up in a Drupal Sub theme

I am attempting to create a custom region for my Drupal 7 sub theme. The process I am following is: 1) Specify sub region in .info file of subtheme like this: regions['sub_region'] = Sub region 2) In the page.tpl.php file, print…
Parijat Kalia
  • 4,929
  • 10
  • 50
  • 77
1
vote
2 answers

Drupal Block display not showing on a module page

I have successfully created content types for certain pages which I have in Drupal. I have also successfully created menus for those content types, so when a user is on a certain type, for instance, Blog Article, they are presented with a certain…
Sententia
  • 625
  • 1
  • 6
  • 17
1
vote
2 answers

Show all regions when returning content from menu callback url

made a simple thankyou page (e.g. /product/3/thankyou) based on a menu callback in a custom module. the content shows up fine in the normal page layout but i want the regions and blocks to show up and they don't. suggestions? // menu…
aterchin
  • 39
  • 4
1
vote
1 answer

How do I locate and move content in my drupal theme

I am making design changes to a site for a client that was created with drupal. Looks like a drupal 7 site. I have located the theme files. The page.tpl.php has an include of page-ajaz.tpl.php That file has the following code
mattwallace
  • 4,132
  • 6
  • 43
  • 77
1
vote
1 answer

Theming with CiviCRM and Drupal, php variables, basics

I've installed CiviCRM with my drupal installation, and I am creating a custom theme. What is a good resource for utilizing CiviCRM elements in the theme? I need to give/pull these things to/from CiviCRM: Registration elements, Basic CiviCRM…
1
vote
1 answer

Drupal 9 - Message and message statut system blocks are not displayed

Thanks for taking the time to read my question. I have a problem adding the message and message status blocks in my content region using Drupal 9. I'm using a custom theme. The blocks are simply not displayed. They are not even added to the…
user14340819
1
vote
1 answer

The libraries of my customized theme cannot be loaded - Drupal 8

I’m trying to translate my Drupal 7 theme to a Drupal 8 theme. I followed the instructions to add my CSS Javascript files by creating the file *.libraries.yml. This is my babol_dp8.libraries.yml file: global-scripts: version: 1.x js: …
1
vote
1 answer

Theming a form in Drupal which has to be a part of an Entity's Content

I've a form in my module (mymodule)... function mymodule_form() { $form['mytext'] = array( '#title' => 'Password', '#type' => 'password', '#size' => 10, ); $form['submit'] = array( '#type' => 'submit', '#value' =>…
1s2a3n4j5e6e7v
  • 1,243
  • 3
  • 15
  • 29
1 2
3
11 12