I am trying to remove all titles from all pages that would be a repeat of the page menu bar. I tried to follow the instructions here:
http://forum.bytesforall.com/showthread.php?t=149 in post 3 but I am not sure I found the right section of code, all matched but the first 2 lines given in the replacement code. Can you copy the original code as well as the replacement so I can see exactly what to change? The change I did in the top 2 lines caused the site to go blank. I have replace the original code and am back where I started.
I went to the Main Index Template and the first 3 lines from that post in place of the top 2 lines below from the code and it did not work. Please let me know what I did wrong. Do I have the wrong section? Thank you.
<?php
if (!is_page()) { ?>
<div class="post-headline">
<!-- Post Headline -->
<div class="post-headline">
<h2><?php
if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php
if (function_exists('the_title_attribute')) {
the_title_attribute();
}
elseif (function_exists('the_title')) {
the_title();
} ?>"><?php
} the_title();
if( !is_single() AND !is_page() ) { ?>
</a><?php