• Chris

    (@christof15)


    Hi there, thanks for the great theme. I love it!
    Could you please tell me how i can edit my child themes header.php to insert the site-description/ blog-description.
    I would prefer to insert a seperate div. For example:

    <div class="blog-description">
    <?php bloginfo( 'description' ); ?>
    </div>

    I think it should go somerwhere in the following snippet of the header.php. But i can’t manage to get it appear -under- the site’s title.

    <a class="blog-logo" href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>' rel='home'>
    			        	<img src='<?php echo esc_url( get_theme_mod( 'rams_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?>'>
    			        </a>
    
    				<?php elseif ( get_bloginfo( 'description' ) || get_bloginfo( 'title' ) ) : ?>
    
    					<h1 class="blog-title">
    						<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>" rel="home"><?php echo esc_attr( get_bloginfo( 'title' ) ); ?></a>
    					</h1>
    
    				<?php endif; ?>

    Thanks a lot in advance!

  • The topic ‘blog-description’ is closed to new replies.