[SOLVED] Display page title at top of center column
Greetings...
My site is http://cslgc.org, and I'm using Atahualpa 3.5.2 (yes, I'll upgrade soon). The home page is set to a static page, and the blog entries are displayed on a page titled "CSL Blog"; its slug is "csl-blog". I want to display the title of this page at the top of the center column. I've tried adding Code:
<?php if ( is_page('CSL Blog') ) {echo 'CSL Blog' ; } ?> What have I done wrong, please? Thanks... JGB |
Okay, I've done some experimenting, and the problem is a little more specific now. I tried this same trick for a different page, adding the following code in ATO > Style and edit CENTER COLUMN > Content ABOVE the LOOP:
Code:
<?php if ( is_page('Directions') ) {echo "#" ; } ?> The problem thus seems limited to my posts page. Something in the way that page is handled overrides any changes I make to the pre-loop code. How can I display a title at the top of the center column of my posts page? Thanks... JGB |
Ha! Solved it.
Per the Wordpress Codex entry on Conditional Tags: Quote:
Code:
<?php if ( is_home() ) {echo '<div class="post-headline"><h1>CSL Blog</h1></div>' ; } ?> JGB |
All times are GMT -6. The time now is 02:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.