extra h3 tag being inserted on all new pages.

phatphildog - September 23, 2007 - 05:16
Project:nonzero
Version:5.x-0.1
Component:Code
Category:bug report
Priority:normal
Assigned:goodeit
Status:active
Description

I have a layout problem with the Nonzero theme - for some reason an extra h3 tag with a non breaking space (complete with a 1 pixel bottom border) is being inserted as per the code below...

Example of this can be seen as follows... http://www.positivephotos.com/photo_gallery

This did not happen on the first few pages I added (http://www.positivephotos.com/feedback/Calendar, http://www.positivephotos.com/feedback) but is now happening on all new pages. i.e...
http://www.positivephotos.com/test, http://www.positivephotos.com/test2, http://www.positivephotos.com/test3
The extra code in question is as follows...

<div id="main_inner" class="fluid">
  <div id="primaryContent_3columns">
<div id="columnA_3columns">
                <div class="breadcrumb"><a href="/photo/">Home</a></div> 
                        <h3>We take photographs...</h3>
                        <div class="post node">
                        <h3>&nbsp;</h3>
                        <ul class="post_info">

#1

goodeit - February 20, 2008 - 19:07
Assigned to:Anonymous» goodeit

The code in question is coming from a few lines in node.tpl.php and is as follows:

<?php if ($page == 0) { ?>
<h3><a href="<?php print $node_url ?>"><?php print $title ?></a></h3>
<?php } else { ?>
<h3>&nbsp;</h3>
<?php } ?>

I think that you could possibly just remove the h3 line and it would work ok... looks like maybe the statement is there to take into account a node that has multiple pages? I'm not sure what $page is, but thats where this whole thing comes from (the if statement).

Take a look and let me know.

 
 

Drupal is a registered trademark of Dries Buytaert.