Extra h3 tag being inserted in nonzero theme
phatphildog - September 18, 2007 - 00:22
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... but only on a couple of pages.
Eg. http://www.bmdd.net/photo/feedback/Calendar is fine, but http://www.bmdd.net/photo/home and http://www.bmdd.net/photo/photo_gallery have the extra tag
<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> </h3>
<ul class="post_info">thanks in advance,
Phil
ps - I'm loving Drupal and the community behind it- fantastic!

More info
this page is a variation on the non zero theme. I've only made minor changes to the css. This problem now occurs on every new page or story I add - ie an 'extra' h3 tag is inserted but I can't figure out why.
New URLs for above problem/new info
Update...have moved the site to a new url.
Example of this problem can be seen as follows... http://www.positivephotos.com/photo_gallery
Also - 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
suggestion
don't use the theme myself, but...
may i suggest that you submit an issue with the nonzero theme project? the maintainer will/should be involved, and assuming it gets resolved, future users of the theme will benefit.
good luck!
Many thanks for that TM -
Many thanks for that TM - thats a great idea (that I should have thought of myself). I'll do that now and see how I get on!
thanks again!
phil
Possible Solution?
Given that it might be a while before this is looked into as a theme issue - and I don't need to add any new pages -I'm thinking I should be able to fix this by editing the code in the node where the problem is currently - i.e. http://www.positivephotos.com/photo_gallery.
Hopefully removing that extra tag
<h3> </h3>will do it.I have no experience in manually editing the code in drupal - this site has been entirely made using the admin options - so I'll search for info on editing nodes and hopefully work it out soon.
Well...
in node.tpl.php, on line 5 is the "offending" code. looks like it is meant to be a vertical spacer on page 0 only, but apparently not working in your case. seems to be missing an "endif" somewhere... not a coder, so sure; maybe a copy of line 15 (the endif statement) inserted at line 7? then again, i could be chasing the wrong thing!
i really should learn this stuff...
Help please?
If anyone has any ideas on fixing this i'd be very pleased to hear from them. I'm not having much luck finding a fix!
cheers,
phil