How to Add Description Below Logo?
-
I’m using the Editor theme. In the Editor theme it will show
EITHER
An Image Logo
OR
Site Title and TaglineRight now the website is showing an Image Logo (the owl carrying the books)
Now, I’ve done some experimenting with the HTML when viewing the page and have come up with exactly what I want. I want this:
Click here to see what site should look likeIt’s got the Image Logo and below I put the title of the page but called it site-description (h2) so it uses the smaller font that the Tagline uses.
I’ve highlighted the HTML code that I used to get that. I’ll also post it here:
<h2 class="site-description"><a href="https://omnieducation.org/" rel="home">Omni Education | Children's Creative Writing | Download Free Workbooks </a></h2>
My question is where do I put that HTML code?My guess is it goes in the header.php. But I’m not sure where it goes and what code I might have to delete from the header.php
This is the original code for the Editor header.php
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> * * @package Editor */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site container"> <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'editor' ); ?></a> <!-- Get sidebar color option (Appearance -> Customize -> Theme Options) --> <?php $editor_sidebar_color = get_option( 'editor_customizer_sidebar_color' ); $editor_featured_cat = get_theme_mod( 'editor_featured_cat' ); ?> <header id="masthead" class="site-header <?php echo $editor_sidebar_color; ?>" role="banner"> <!-- Tab navigation --> <ul class="toggle-bar" role="tablist"> <!-- Main navigation --> <li id="panel-1" class="current" role="presentation"> <a href="#tab-1" role="tab" aria-controls="tab-1" aria-selected="true" class="current nav-toggle" data-tab="tab-1"><i class="fa fa-bars"></i><span class="screen-reader-text"><?php _e( 'View menu', 'editor' ); ?></span></a> </li> <!-- Featured Posts navigation --> <?php if( $editor_featured_cat && $editor_featured_cat !== '0' ) { ?> <li id="panel-2" role="presentation"> <a href="#tab-2" role="tab" aria-controls="tab-2" aria-selected="false" data-tab="tab-2"><i class="fa fa-thumb-tack"></i><span class="screen-reader-text"><?php _e( 'View featured posts', 'editor' ); ?></span></a> </li> <?php } ?> <!-- Sidebar widgets navigation --> <li id="panel-3" role="presentation"> <a href="#tab-3" role="tab" aria-controls="tab-3" aria-selected="false" class="folder-toggle" data-tab="tab-3"><i class="fa fa-folder"></i><i class="fa fa-folder-open"></i><span class="screen-reader-text"><?php _e( 'View sidebar', 'editor' ); ?></span></a> </li> </ul> <div id="tabs" class="toggle-tabs"> <div class="site-header-inside"> <!-- Logo, description and main navigation --> <div id="tab-1" class="tab-content current fadeIn"> <div class="site-branding"> <!-- Get the site branding --> <?php $logo = get_theme_mod( 'editor_customizer_logo' ); if ( ! empty( $logo ) ) { ?> <h1 class="site-logo"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img class="site-logo" src="<?php echo esc_url( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a> </h1> <?php } else { ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <?php } ?> </div> <nav id="site-navigation" class="main-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
- The topic ‘How to Add Description Below Logo?’ is closed to new replies.