This forum is for assistance with theme development.

Anyone know a way of customising the Contact lict?

I'd prefer to have space between the list of contacts, and maybe more explanation of who they are as, and also for it not to say 'Who would you like to contact?' Anyone know how to change it?

Customize profile editing

What is the best way to theme the editable user and profile pages. I want to omit some fields from editing and rearrange a couple others.

Is there a better way to do this than to edit profile_form_profile directly?

Add class to primary links

I cannot figure out how to style the primary links. I am using the Foundation theme to create a custom theme, and I simply want to add a class attribute to the anchor tag of the primary links items. I have looked in the template files, style sheet, phpTemplate handbooks and searched the forums but without any luck. Any ideas? Thanks.

- Tyson

Customise /taxonomy/term/**

Hi,

This page (http://*******/?q=taxonomy/term/93) is a real mess as it displays snippets from the related nodes. This leaves divs and tables unclosed and totaly mashes my theme.

I recently followed this (http://drupal.org/node/41257) tutorial which allowed me to customise my /image/ page.

How do I use the same logic to control what is displayed on /taxonomy/term/ pages?

i.e create taxonomy.tpl.php ?

Cheers,

Lee.

Mollio proper usage of $mollio_layout

I am a newbie to Drupal, and playing with the Mollio port to drupal - which is, by the way, great.
I just do not understand where I am supposed to set the layout type.
Since the page.tpl.php has logic for reading the value of $mollio_layout, it is obviously ready to display in any of the mollio options. But where in Drupal (or outside of it) do I plug a value in for this variable.
In the non-Drupal world, this is done by setting the body id=type-a
So somewhere I need to set $mollio_layout =type-a.
Where in the that supposed to happen?

Theme Help; disabling certain compenets such as slogan and logo?

I'm working on a theme which is based on friends electric I need to disable the abbility to show a logo, so that when enabled it dosn't show anything because I have no logo.png, it shows Home (in text) and also I want to disable the use of a slogan. So again when enabled dosn't show up. Here is the content of my page.tpl.php file:

<php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language; ?>" xml:lang="<?php print $language; ?>">
<head>
  <title><?php print $head_title ?></title>
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <?php print $head ?>
  <?php print $styles ?>
  <script type="text/javascript"> </script>
</head>
<body><div class="bw1"><div class="bw2"><div id="body-wrap">

<!-- Begin Page Header -->
<div id="header"><div class="hw1"><div class="hw2">
    <?php if ($site_name): ?>
    <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1>
  <?php endif; ?>
  <?php print $search_box ?>

  <div id="top-nav">

    <?php if (isset($primary_links)): ?>
      <ul id="primary">
      <?php foreach ($primary_links as $link): ?>
        <li><?php print phptemplate_wrap_links($link, 2); ?></li>
      <?php endforeach; ?>
      </ul>
    <?php endif; ?>

    <?php if (isset($secondary_links)): ?>
      <ul id="secondary">
      <?php foreach (array_reverse($secondary_links) as $link): ?>
        <li><?php print phptemplate_wrap_links($link, 2); ?></li>
      <?php endforeach; ?>
      </ul>
    <?php endif; ?>
  </div>

</div></div></div>

<!--End Page Header-->

<div id="content" class="content-<?php print $layout; ?>"><div class="cw1"><div class="cw2"><div class="cw3"><div class="cw4"><div class="cw5"><div class="cw6"><div class="cw7"><div class="cw8">
 <div id="content-wrap" class="content-wrap-<?php print $layout; ?>">
  <?php if ($sidebar_left != ""): ?>
    <div class="sidebar" id="sidebar-left">
      <?php 
        // Mark first block title
        list($a, $b) = explode('<h2>', $sidebar_left, 2);
        print $a . '<h2 class="first">' . $b;
      ?>
    </div>
  <?php endif; ?>    
  <div id="main" class="main-<?php print $layout; ?>"><div id="main-wrap" class="main-wrap-<?php print $layout; ?>"><div class="mw1">
    <?php print $header ?>
    
    <?php if ($mission != ""): ?>
      <div id="mission"><div class="sw1"><div class="sw2"><div class="sw3"><?php print $mission; ?></div></div></div></div>
    <?php endif; ?>

    <?php print $breadcrumb ?>

    <?php if ($title): ?>
      <h2 class="main-title"><?php print $title; ?></h2>
    <?php endif; ?>

    <?php if ($tabs): ?>
      <?php print $tabs; ?>
    <?php endif; ?>
       
    <?php if ($help): ?>
      <p id="help"><?php print $help; ?></p>
    <?php endif; ?>
        
    <?php if ($messages): ?>
      <div id="message"><?php print $messages; ?></div>
    <?php endif; ?>
        
    <?php print phptemplate_wrap_content($content) ?>
 
    <?php if ($footer_message): ?>
      <div id="footer" class="footer-<?php print $layout; ?>"><p><?php print $footer_message; ?></p></div>
    <?php endif; ?>
  </div></div>
 </div>
</div>
 <?php if ($sidebar_right): ?>
 <div class="sidebar" id="sidebar-right">
   <?php
     // Mark first block title
     list($a, $b) = explode('<h2>', $sidebar_right, 2);
     print $a . '<h2 class="first">' . $b;
   ?>
 </div>
 <?php endif; ?>    
 <span class="clear"></span>
</div></div></div></div></div></div></div></div></div>

<?php print $closure;?>
</div></div></div><div id="end" class="end-<?php print $layout; ?>"><div class="ew1"><div class="ew2"></div></div></div></body>
</html>
What have I done wrong? Do I need to edit template.php? Thanks in advance,
Ben McRedmond
Benofsky Park.com
http://benofskypark.com/news

Pages

Subscribe with RSS Subscribe to RSS - Theme development