WordPress.org

Support

Support » Themes and Templates » adding a site description

adding a site description

  • jimmyesl
    Participant

    @jimmyesl

    Hey guys,

    I’m using a 2014 child theme. I want to add a site description. I was able to do before, but now it won’t show after I messed around with it.

    any ideas?

    http://www.jimmyesl.com

Viewing 1 replies (of 1 total)
  • Michael
    Forum Moderator

    @alchymyth

    the site description is actually shown at the top of the sidebar, using this code:

    <?php
    		$description = get_bloginfo( 'description', 'display' );
    		if ( ! empty ( $description ) ) :
    	?>
    	<h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
    	<?php endif; ?>

    if you want to add it to the header file, find a suitable location to add the code.
    or diescribe in detail where exactly you want to show the description, so somebody might be able to help with that.

Viewing 1 replies (of 1 total)
  • The topic ‘adding a site description’ is closed to new replies.