• Hello, I’m using the Hitchcock theme which is great, I simply love it.
    However, for some reason, if I go to the admin area and choose a Site Title and Tag Description for my website, the description simply becomes part of the title. So I end up having a way too long title and the description as well. I’ve been looking in the Editor, header.php but being such a newbie I couldn’t find where to do it directly from there.

    Now, is there any way to edit my website’s title and description somehow manually rather than the admin menu? I hope that will fix my issue.

    Thanks,
    Vic

Viewing 1 replies (of 1 total)
  • Thread Starter vicavr

    (@vicavr)

    Just to make it easier, this is the code from my header.php. I tried replacing the blog title, or title with my own choice, however it still won’t appear in there.
    Any help and suggestion would be very much appreciated.

    <!DOCTYPE html>

    <html class=”no-js” <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no” >

    <?php wp_head(); ?>
    <html>
    <head>
    <meta name=”msvalidate.01″ content=”686175E22C2C7DB06410F09315372C77″ />

    </head>
    </html>
    </head>

    <body <?php body_class(); ?>>

    <div class=”navigation”>

    <div class=”section-inner”>

    <ul class=”main-menu”>

    <?php if ( has_nav_menu( ‘primary’ ) ) {

    wp_nav_menu( array(

    ‘container’ => ”,
    ‘items_wrap’ => ‘%3$s’,
    ‘theme_location’ => ‘primary’,

    ) ); } else {

    wp_list_pages( array(

    ‘container’ => ”,
    ‘title_li’ => ”

    ));

    } ?>

    <li class=”header-search”>
    <form method=”get” class=”search-form” id=”search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <input type=”search” class=”search-field” name=”s” placeholder=”<?php _e(‘Search Form’,’hitchcock’); ?>” />
    <div class=”fa fw fa-search”></div>
    </form>

    <div class=”clear”></div>

    </div> <!– /section-inner –>

    <div class=”nav-toggle”>

    <div class=”bars”>
    <div class=”bar”></div>
    <div class=”bar”></div>
    <div class=”bar”></div>
    </div>

    </div> <!– /nav-toggle –>

    <div class=”mobile-navigation”>

    <ul class=”mobile-menu”>

    <?php if ( has_nav_menu( ‘primary’ ) ) {

    wp_nav_menu( array(

    ‘container’ => ”,
    ‘items_wrap’ => ‘%3$s’,
    ‘theme_location’ => ‘primary’,

    ) ); } else {

    wp_list_pages( array(

    ‘container’ => ”,
    ‘title_li’ => ”

    ));

    } ?>

    <?php get_search_form(); ?>

    </div> <!– /mobile-navigation –>

    </div> <!– /navigation –>

    <div class=”header-image” style=”background-image: url(<?php if (get_header_image() != ”) : ?><?php header_image(); ?><?php else : ?><?php echo get_template_directory_uri() . ‘/images/bg.jpg’; ?><?php endif; ?>);”></div>

    <div class=”header section-inner”>

    <?php if ( get_theme_mod( ‘hitchcock_logo’ ) ) : ?>

    ‘ 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( ‘hitchcock_logo’ ) ); ?>’ alt='<?php echo esc_attr( get_bloginfo( ‘title’ ) ); ?>’>

    <?php else : ?>

    <h1 class=”blog-title”>
    ” title=”<?php echo esc_attr( get_bloginfo( ‘title’ ) ); ?> — <?php echo esc_attr( get_bloginfo( ‘description’ ) ); ?>” rel=”home”><?php echo esc_attr( get_bloginfo( ‘title’ ) ); ?>
    </h1>

    <?php endif; ?>

    <?php if ( get_bloginfo(‘description’) ) : ?>

    <p class=”blog-description”><?php echo bloginfo(‘description’); ?></p>

    <?php endif; ?>

    <?php if ( has_nav_menu( ‘social’ ) ) : ?>

    <ul class=”social-menu”>

    <?php
    wp_nav_menu(
    array(
    ‘theme_location’ => ‘social’,
    ‘container’ => ”,
    ‘container_class’ => ‘menu-social’,
    ‘items_wrap’ => ‘%3$s’,
    ‘menu_id’ => ‘menu-social-items’,
    ‘menu_class’ => ‘menu-items’,
    ‘depth’ => 1,
    ‘link_before’ => ‘<span class=”screen-reader-text”>’,
    ‘link_after’ => ‘</span>’,
    ‘fallback_cb’ => ”,
    )
    );
    ?>

    <!– /social-menu –>

    <?php endif; ?>

    </div> <!– /header –>

Viewing 1 replies (of 1 total)
  • The topic ‘Set Website Title and Description other than Appearance > Customise?’ is closed to new replies.