WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Fourteen
[Theme: Fourteen] Website title and site description in the same line (2 posts)

  1. cartagiov
    Member
    Posted 9 months ago #

    Hello everybody.
    What do I have to do for keeping title and site description in the same line?

  2. WPMU DEV
    Member
    Posted 9 months ago #

    Hi @cartagiov,

    To display title and site description in the same line just remove the following code from the sidebar.php file and add it on line number 46 in the header.php file of your child theme">child theme.

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

    Add following CSS code in the style.css file of your child theme or add it in your site using the following plugin.

    http://wordpress.org/plugins/simple-custom-css

    h2.site-description {
       float: left;
       clear: none;
       margin: 20px;
       color: #fff;
    }

    Best Regards,
    WPMU DEV

Reply

You must log in to post.

About this Theme

About this Topic