Need Help With COding header

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abjadoon
Forum Newbie
Posts: 2
Joined: Sat Mar 14, 2015 12:29 pm

Need Help With COding header

Post 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; ?>
abjadoon
Forum Newbie
Posts: 2
Joined: Sat Mar 14, 2015 12:29 pm

Re: Need Help With COding header

Post by abjadoon »

hmm waiting
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Need Help With COding header

Post 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?
(#10850)
Post Reply