• Resolved David Lassiter

    (@david-lassiter)


    From some reason on my site ( https://www.chibigamers.com ) the title on my page is being showed twice on my home page.

    My webcomic site shows on the top of the page the title tag followed by a line “-” then the title of that one page

    so for my contact page reads “ChibiGamers Updates Mondays and Thursdays – Contact” as seen here https://chibigamers.com/?page_id=197

    but on my home page whatever I put in my title under Settings > General >Site Title gets doubled and reads “ChibiGamers Updates Mondays and Thursdays – ChibiGamers Updates Mondays and Thursdays”

    How can I have my site title to not show the tile of each page and only the tag line, or be able to customize what it shows instead of the title of each page

    Also – How can I add an icon that is shown next to the tag line (Like the red C on ComicPress pages, which is defaulted on a white sheet of paper)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You’ll have to go into the Theme Editor page in the Dashboard under the Appearance section. From there you can open up header.php and look for something like

    <title><?php bloginfo('name'); ?></title>

    That is only an example but it should be something similar to that.

    Maybe post your header.php file in here so we can have a better look.

    Thread Starter David Lassiter

    (@david-lassiter)

    ok then

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
    	<title><?php
    	bloginfo('name');
    	if (is_home () ) {
    		echo ' - '; bloginfo('ChibiGamers - Updates Mondays and Thursdays');
    	} elseif (is_category() ) {
    		echo ' - '; single_cat_title();
    	} elseif (is_single() || is_page() ) {
    		echo ' - '; single_post_title();
    	} elseif (is_search() ) {
    		echo __(' search results: ','comicpress'); echo esc_html($s);
    	} else {
    		echo ' - '; wp_title('',true);
    	}
      ?></title>
    	<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
    	<meta name="ComicPress" content="<?php echo comicpress_themeinfo('version'); ?>" />
    <!--[if lt IE 7]>
       <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/ie6submenus.js"></script>
    <![endif]-->
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <?php
    if (is_active_sidebar('above-header')) get_sidebar('above');
    ?>
    <div id="page-head"></div>
    <?php if (!comicpress_themeinfo('disable_page_restraints')) {
    	if (is_cp_theme_layout('standard,v')) { ?>
    <div id="page-wrap"><!-- Wraps outside the site width -->
    	<div id="page"><!-- Defines entire site width - Ends in Footer -->
    <?php } else { ?>
    <div id="page-wide-wrap"><!-- Wraps outside the site width -->
    	<div id="page-wide"><!-- Defines entire site width - Ends in Footer -->
    		<?php }
    } ?>
    
    <div id="header">
    	<?php do_action('comicpress-header'); ?>
    	<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name') ?></a></h1>
    	<div class="description"><?php bloginfo('description') ?></div>
    	<?php if (is_active_sidebar('header')) get_sidebar('header'); ?>
    	<div class="clear"></div>
    </div>
    
    <?php
    if (!comicpress_themeinfo('disable_default_menubar')) comicpress_menubar();
    if (is_active_sidebar('menubar')) get_sidebar('menubar');
    get_template_part('layout', 'head');
    ?>

    <title><?php
    	bloginfo('name');
    	if (is_home () ) {
    		echo ' - '; bloginfo('ChibiGamers - Updates Mondays and Thursdays');

    This section is creating the double title on your home page, try editing the code to show as

    <title><?php
    	if (is_home () ) {
    		bloginfo('name');

    then you can go into the General page under the Settings section and set the title that you want in the Site Title input field.

    Thread Starter David Lassiter

    (@david-lassiter)

    OK good that all worked

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duble title tag in home page’ is closed to new replies.