Page 1 of 1

Need Help With COding header

Posted: Sat Mar 14, 2015 12:38 pm
by abjadoon
Hi i just want to add wrapper for h1 on my logo if someone can create for me here is the coding for logo portion of theme. I just need it for only home page. Theme get h1 tags from the custom slider on the theme i removed those h1 tags what i just want is too add h1 for home page

<?php
// read the custom logo image if it's set
if( $td_logo && $td_logo != '' ) :
?>
<div id="logo-full">
<a href="<?php echo home_url( '/' ); ?>"><img src="<?php echo $td_logo; ?>" width="auto" height="auto" alt="<?php echo $td_logo_alt; ?>" <?php echo $td_logo_title; ?> /></a>
</div><?php // end of #logo / ?>

<?php else : // show the text logo if the logo image isn't set ?>

<div id="text-logo-full">
<span class="site-name-full">
<a href="<?php echo home_url( '/' ); ?>" <?php echo $td_logo_title; ?> rel="home"><?php bloginfo( 'name' ); ?></a>
</span>
<span class="site-description"><?php bloginfo( 'description' ); ?></span>
</div><?php // end of #text-logo / ?>

<?php endif; ?>

Re: Need Help With COding header

Posted: Sun Mar 15, 2015 3:38 am
by abjadoon
hmm waiting

Re: Need Help With COding header

Posted: Sun Mar 15, 2015 2:27 pm
by Christopher
abjadoon wrote:Hi i just want to add wrapper for h1 on my logo if someone can create for me here is the coding for logo portion of theme. I just need it for only home page. Theme get h1 tags from the custom slider on the theme i removed those h1 tags what i just want is too add h1 for home page
How can this page know if it is the home page or not? Is there a parameter? Or no parameter? Or by the page/script name?