Remove Genesis Site Description Conditionally

Both these code snippets include a conditional tag which removes the site description from the front page.

You can modifiy, replace or add to the conditional tag based on your own needs.

Alternatively, you could also use code like this to return something else conditionally. In this example it simply returns the description.

If you prefer using CSS code, you can grab the post/page i.d or template class from the body classes in your source code and use it in a new rule like this:

.home .site-description {
display: none;
}

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.