- This topic has 2 replies, 2 voices, and was last updated 9 years ago by AlanF.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
March 31, 2015 at 5:03 am #54773AlanFMember
Hi,
I was wondering if there was an easy way to display a second tag line in the site header, or allow a <br/> to be entered in the tagline text?
March 31, 2015 at 10:22 am #54786SakinKeymaster@AlanF: Site tagline is controlled by WordPress Core and this falls under plugin territory. So, you can either search for plugin to do it or you can build child theme of Catch Box. For child theme check out http://catchthemes.com/blog/create-child-theme-wordpress/. Then in your child theme, copy function
catchbox_header_details()
in your child theme functions.php file. For example, the following code, where I have added in<br />
code and text./** * Template for Header Details * * @since Catch Box 2.5 */ function catchbox_header_details() { // Check to see if the header image has been removed global $_wp_default_headers; $header_image = get_header_image(); if ( ! empty( $header_image ) ) : echo '<div id="hgroup" class="site-details with-logo">'; else : echo '<div id="hgroup" class="site-details">'; endif; // end check for removed header image ?> <h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 id="site-description"><?php bloginfo( 'description' ); ?><br />Add your new text</h2> </div><!-- #hgroup --> <?php }
March 31, 2015 at 3:43 pm #54798AlanFMemberPerfect,
That worked first time! Sorry for what ended up being a non-theme question, new to WP so still finding my way around.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Display second tagline’ is closed to new replies.