Page Template Question – New Template with no Title?
-
Hello,
I`m very new with wordpress and web design in general so please bare with me.I was watching a tutorial on Lynda.com and the guy said to remove a title from a page you have to do the following:
Create a new page.php file in the child theme folder and add this to the top:
<?php /* Template Name: Branded Page with No Title */ ?>
Then rename it brandedPage
Then make save a copy of the loop-page.php in the child theme theme and add the following into the loop-page:
<?php if (!is_page_template ('brandPage')) { ?> <?php if ( is_front_page() ) { ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } ?> <?php } ?>
Once I chance the page template in wordpress to the Branded Page the title should disappear, but it doesn
t. Can someone please tell me what I
m doing wrong?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Page Template Question – New Template with no Title?’ is closed to new replies.