Title in different position for pages and posts
-
I am trying to position the page title in a different place on a page to that on a post.
I am already using the code:<h1 class="entry-title"> <?php if ( ! is_front_page() ) { the_title(); } ?> </h1>
to remove the title completely from the home page.
So I need to somehow combine conditions so that I can add a class or id to the h1 tag for posts only, then I can use css to position it. But I can’t work out how to add the necessary code to the above in order to do this.
Any help would be much appreciated.Kevin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Title in different position for pages and posts’ is closed to new replies.