Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'd like to remove the link that is generated around the logo when users are on the home page. Does wordpress have a built in function so I can wrap an if condition around the logo in the template so if the current page is the home page I can have the output without the a tag, and the else would simply be the current code.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Its a template specific thing mate. You might have to edit the header.php and add a condition like:

<?php

//Check for homepage
if(!is_front_page())
{
    //The link around logo markup
}
else
{
    //Just the logo markup without the link
}

?>
share|improve this answer
    
Thanks Rutwick that's what I was looking for, a simple condition to wrap the template code into. –  Anagio Dec 20 '11 at 13:56
    
You're welcome! –  Rutwick Gangurde Dec 20 '11 at 15:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.