ThemeShaper Forums » Thematic

[closed]

Custom Template and Leader

(2 posts)
  • Started 10 years ago by kgoodman
  • Latest reply from Chris
  • This topic is resolved
  1. kgoodman
    Member

    Hi,

    Using Feature Site. Love it. Thanks everyone in advance.

    I could use some help trying to customize the leader content for new page template. I got the basic structure of the template and implemented it with no problem.

    Now I am trying to make it a little more complicated. But have subsequently gotten lost with the PHP.

    Here's my attempt at the basic code in trying to customize the leader for a page template. All help appreciated.

    <?php
    function custom_route_leader() {
    <div id="leader">
    <div id="leader-container">

    <?php if (is_page('rongai')) { ?>
    <div class="entry-title">
    <h2>The <?php> the_title()?> Route</h2>
    <p>dynamic content here</p>

    <?php } elseif (is_page('marangu')) { ?>
    <div class="entry-title">
    <h2>The <?php> the_title()?> Route</h2>
    <p>dynamic content here</p>

    <?php } elseif (is_404()) { ?>
    <h1 class="entry-title">Not Found</h1>

    </div>
    </div>
    ?>

    Thanks.

    Posted 10 years ago #
  2. This one looks better:

    function custom_route_leader() {?>
    	<div id="leader">
    		<div id="leader-container">
    
    		<?php if (is_page('rongai')) { ?>
    			<div class="entry-title">
    				<h2>The <?php> the_title()?> Route</h2>
    				<p>dynamic content here</p>
    			</div>
    		<?php } elseif (is_page('marangu')) { ?>
    			<div class="entry-title">
    				<h2>The <?php> the_title()?> Route</h2>
    				<p>dynamic content here</p>
    			</div>
    		<?php } elseif (is_404()) { ?>
    			<h1 class="entry-title">Not Found</h1>
    		<?php } ?>
    
    		</div>
    </div>
    <?php
    }

    Chris

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.