This forum is for assistance with theme development.

Remove comment icon

I'm VERY new to drupal. I've created a news page. Items are fed there from individual news posted to the site front page. So, collectively I have a list of all news items.

Alongside each item is a speech bubble that keeps the comment count. I've gone right through the site and turned all reference to comments off. Still the annoying bubble remains.

How do i kill it please?

Custom region to adaptive theme

Hello,

I am wanting to add a user profile view block to the right of the logo, under the leaderboard region in adapative sub-theme.

My thinking is to add a custom region within the header region alongside the branding section (branding 75%, custom user region 25% adjusted to 100% for mobile).

1) add custom region to .info file.
2) add php for custom region to sub-themes page.tpl.php file.
3) add dimensions to global.styles.css.

Is this the best way to achieve this?

Thanks in advance

DS

Custom page template with theme_hook_suggestions

Hi to all.
I am new in Drupal and i have to modify an existing theme. I have to create a custom page with a specific layout, different from other pages ones.
I tryed to use the node--slug.tpl.php method, but it doesn't work.

Looking for a solution on the web, i understand that i must edit the template.php file in y theme and add some line of code to the %themename%_preprocess_node() or %themename%_preprocess_page() function.
I tried to add these lines to the %themename%_preprocess_node() function:

$vars['theme_hook_suggestions'][] = 'node__' . $field;
$vars['theme_hook_suggestions'][] = 'node__' . $node->type;
$vars['theme_hook_suggestions'][] = 'node__' . $field . '__' . $node->type;

But it doesn't work, so i tried to add these to the %themename%_preprocess_page() function:

$vars['theme_hook_suggestions'][] = 'node__page__' . $field;
$vars['theme_hook_suggestions'][] = 'node__page__' . $node->type;
$vars['theme_hook_suggestions'][] = 'node__page__' . $field . '__' . $node->type;

But it doesn't work either.

I created a page from the backend "Test page" with "www.mysite.com/test-page/" url. Then added a file to my theme directory and tried to rename it with the following names, without any success:

node--580.tpl.php
page--node--580.tpl.php

node--test-page.tpl.php

Recovering from broken theme

I hope this will help someone with broken theme issues.

After trying to restore my database with backup and migrate, deleting themes, using drush to update my database, allowing free access in settings.php I finally can get in.

Array information in theme .info file

I want to save a cascaded version of settings for my theme in the .info file.

Can I do the following?

settings[breadcrumbs][Default] = '>'
settings[breadcrumbs][Pipe] = '|'
settings[breadcrumbs][Slash] = '/'

If that's possible, how can you call these "arrayed" setting variables? theme_get_settings('breadcrumbs[Default]')?

Much appreciated!

Alex

Creating my first theme using Zen

hello,

I have decided! that I will start to create my first theme. this is uber exciting and I cannot wait to see the finish product in like a year. I am using zen as my base because I read on several discussions on this drupal.org that people started with this particular starter theme. I read the readme files and I totally was not aware that -rtl.css was totally of no use! When I was playing around with the previously installed themes, I changed those .css files because I was like welp, they need to change!

okay, anyways, I would like to add more region settings to my theme (modifying zen). I cannot find it anywhere! I looked in drupal7-reference.css to see if I could find the regions currently in my theme (header, navigation bar, highlighted, help, content, first sidebar, second sidebar, footer, page bottom) but I cannot find it anywhere. I did read the /css/README.txt file and it did briefly explain what all the css files are and how it relates to the theme. However, it did not mention anything about blocks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development