BWILL
|
I need to remove the page titles - for example Home and About. Unfortunatly if you remove the following from node.tpl.php :
<h2 class="art-postheader"> <?php echo art_node_title_output($title, $node_url, $page); ?>
</h2>
It removes titles from your post content as well because they are assigned class art-postheader as well.
So, I created a copy of node.tpl.php called node-about.tpl.php and took out this code, but version 2.4.0.27666 Standard Edition seems to ignore this.
How can this be corrected?
|
|
Lawrence
|
If you want to remove titles for specific nodes, you can do that through the CSS.
#node-(insert-node-number-here) .title {
display:none;
}
Just place the code at the very end of your style.css sheet.
|
|
BWILL
|
Thanks Larwence - I didn't think of doing it that way. But... what I did should have worked as well.
|
|
BRWILL
|
Looking closer at your answer, I don't want to hide the page title, I want to hide the post header which is what the title is created in as I stated in my first post
<h2 class="art-postheader"> <?php echo art_node_title_output($title, $node_url, $page); ?>
</h2>
So I tried
#node-1.art-postheader {
display:none;
}
This did not work. My home page is node 1. I cleared the cache. Just for kicks I tried .title - didn't work.
|
|
BRWILL
|
OK - remembering CSS 101 I tried the following which did work. Note the space between the node id and class name:
#node-1 .art-postheader {
display:none;
}
|
|