This forum is for assistance with theme development.

html.tpl.php not rendering

trying to convert a drupal 6 custom theme for use on drupal 7

I have split taken all the header and footer stuff out of page.tpl.php and put it into a html.tpl.php file in my theme/templates directory but the html.tpl.php is not being rendered around the the page.tpl.php

So i just get the rendered page.tpl.php spat back from the webserver with none of the doctype, header & footer etc...

here is my .info file

name = Mobile_Theme
description = Tableless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 7.x
engine = phptemplate

stylesheets[all][] = style.css
stylesheets[print][] = print.css
stylesheets[all][] = css/sg-handheld.css
stylesheets[only screen and (-webkit-min-device-pixel-ratio: 2)][] = css/sg-retina.css

; Information added by drupal.org packaging script on 2011-05-25
version = "7.0"
project = "drupal"
datestamp = "1306357015"

and here is my html.tpl.php


Perplexing Error -- Undefined offset

I am trying to build a Drupal site that changes the background depending on what section of the site a visitor is looking at. I have some child pages that should inherit the parent page's background.

I am doing this by adding a class to the BODY tag, and specifying the background in CSS through that class.

Everything works, but I nevertheless get the following error:

Notice: Undefined offset: 1 in MYTHEME_preprocess_html() (line 23 of template.php)

I am using the following code to detect what section of the site is active, and to add a sanitized version of the parent page as a CSS class:

function MYTHEME_preprocess_html(&$variables) {

$menuParent = menu_get_active_trail();
$menuParent = drupal_html_class($menuParent[1]['link_title']);
$variables['classes_array'][] = $menuParent;

As I said, it works, the backgrounds display correctly, but the error is with the line:

$menuParent = drupal_html_class($menuParent[1]['link_title']);

This is perplexing because the code works and [1] is populated with a host of values, which I can see using:

print_r ($menuParent[1]);

print_r returns:

Array
(
[menu_name] => main-menu
[mlid] => 298
[plid] => 0
[link_path] => node/1
[router_path] => node/%
[link_title] => Motion Pictures
[options] => Array
(

Node Edit Page Links Broken

Hello,

I'm working on developing a theme and everything appears to function correctly with my theme until I go to edit the content of a page using that theme. Once on the Node/edit page I run into issues. I've built this theme off a copy of a theme that has worked without an issue like this. This is a sub-theme based on the 960.gs theme.

Perhaps others have seen a similar issue? I've searched and search the forums and can't find a similar post.

CSS border

I am using a subtheme of footheme and i am using a url linked image on my home page but i get a small grey border around it, this is only with this image on this page, all my others are fine. I have used firebug to try and determine the problem but it seems it doesn't read it. I can't seem to find if any css is causing this in the themes files, but if anyone knows where the css is or knows how to fix it i would be really grateful. Thanks!

Is this a pre-built theme? Or custom?

http://www.fastcodesign.com/

This website has an amazing theme and they PROBABLY bought a custom one, but just in case... I'm asking if anyone has seen this before?

Pages

Subscribe with RSS Subscribe to RSS - Theme development