WordPress.org

Forums

adding a site description (2 posts)

  1. jimmyesl
    Member
    Posted 9 months ago #

    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

  2. alchymyth
    Forum Moderator
    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.