[resolved] Child Theme TwentyTen Custom Page Template Doesn't Work (2 posts)

  1. ChristopherTheMerchant
    Posted 3 years ago #

    Trying to do a Page with no headline.

    I'm using twentyten child theme. It has the standard 3 files + custompage.php and loop-page.php

    The only coding I did was insert the conditional statement

    <?php if (!is_page_template('my_custom_page.php')) { ?>
    					<?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 } ?>

    Instructions came from here:



    Works, no page/entry title. But no layout and no header.


    I'm an impatient tweaker who likes to learn. Please help :)

  2. ChristopherTheMerchant
    Posted 3 years ago #

    Got it. Turns out I'm smarter than I thought. Which isn't sayin' much :P There was a syntax error (unclosed php tag) in the custom page PHP, nothing wrong with the loop. The video missed it by a hair. Instructions still hold up for anyone looking.

Topic Closed

This topic has been closed to new replies.

About this Topic