This forum is for assistance with theme development.

Adding PHP to theme files via include/require.

Hello,

Maybe I'm just worrying over nothing, but I have this question: is it OK if I include some PHP to Drupal 7 theme files?

For example, if I add this snippet inside page.tpl.php:

<div class="quotes_area">
	<?php require_once('CCCP_funny_quotes.php'); ?>
</div>

(And the contents of CCCP_funny_quotes.php is just a raw PHP code.)

I know that it works fine, but does it actually follow the Drupal coding conventions?

Taxonomy URL - Acces denied

Hi all,

I have a taxonomy group called categories.
In this group I have my categories ;)

In my navigation bar there are a lot of links directed to "site.com/categories/music" (example).

Here's the problem:
I don't have acces anymore to the url; the links in my navigation are gone. :(
I can still see the categories if I go in the admin site .... , I can add and edit them... but no acces to the url :s

Increasing the width of a single page (#content-sub)

Hey,

I've added an iFrame to one of my pages, it needs to go wider than standard due to the page that's displayed within the frame.

I've experimented with changing #content-sub (found in style.css) from 960px to 100% however this changes the width of everypage.

How can get a wider content area for a single page?

My iFrame code is:

White Space Issue...

Hi all,

Can someone who is a css guru take a look at our site and see if you can figure out why I get extra white space on the right using Chrome and Safari? It's causing problems with viewing on iPads. I know it's got to be something in the CSS, but I can't seem to figure out what it could be.

http://www.soph.uab.edu

Thanks!

Greg

Screen resolution with Mayo

Is there a way to have the Mayo theme adjust resolution so a site will fit properly in different screen sizes?

Pages

Subscribe with RSS Subscribe to RSS - Theme development