WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:


//Check for homepage
    //The link around logo markup
    //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


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.