This forum is for assistance with theme development.

Is it possible to make Colorbox Adaptive?

I made an adaptive theme with Drupal 7.22 installation, which works very fine. Unfortunately the size of the iFrame's opened by Colorbox are not adaptive.

To open them, I do the following:

<a class="colorbox" href ="http://mydomain.tld?width=800&height=700&iframe=true">Link</a>

But the width and height properties are hard-coded. How can I specify different values for the width and height properties based on the browser aperture/screen definitions?

If $teaser not working in node--custom.tpl.php

I am using node--directory.tpl.php
The following code is not working:

Trying to get page--front.tpl.php recognized

Ok, so I'm working based on a custom sub-theme of AT Commerce, which is itself a sub-theme of Adaptive Theme.

I've created a page--front.tpl.php file in my derivative theme. However, it is not getting recognized by Drupal.

What could cause this? Do I need a new template.php or theme-settings.php file?

Could it be that I have the panels module installed and my site information is pointing towards a panels page?

How do I fix this?

page--front.tpl.php or site information

Perhaps I am misunderstanding how this works - but what takes precedence, page--front.tpl.php, or the site information denoting a particular path as the front page?

Would the former just determine the look of the page, whereas the latter would determine the content (primarily, obviously you could hard code content).

I am not sure the relationship between these two things. I've currently got my homepage set to /front with a panels page, but I was also considering writing a custom page--front.tpl.php file as well for some additional theming.

wilderness theme, quit the image of the grass in the top of the post zone

Hi.

í have just updated mi site to a new theme (Wilderness 7.x-1.0-alpha1 ) it have an image in the top of the post zone, how do i quit that?
thanks in advance

Drupal 7 conditionally check a field

I'm trying to write a conditional statement in a template file to check if the value of a 'node reference' field is not equal to a certain value. This is what I have so far:

Pages

Subscribe with RSS Subscribe to RSS - Theme development