WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blog title not showing correctly (5 posts)

  1. iamjace.m
    Member
    Posted 1 year ago #

    Hey guys,

    I need help in correcting the text that is written on the title bar of my blog page. It says <!-- don't display title (leave this blank) --> instead of blog. Please help.

    The site is http://www.thescenestealer.com and the problem can be seen at the blogs page. (See title bar)

    Thanks a million wp!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    edit header.php and see if you can locate a line or section starting with <title> and ending with </title>;

    what is the code of that section?

    for more detailed support, you might need to contact the source where you got the theme from.

    the theme is not freely downloadable and is supported by this forum.

  3. iamjace.m
    Member
    Posted 1 year ago #

    Thanks @Alchymyth

    This is what's showing on header.php

    <title>
    
    <?php if (is_home()) { ?>
    <!-- don't display title (leave this blank) -->
    <?php } else { ?>
    <?php //the_title(); ?>
    <?php } ?>
    
    <?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 * We filter the output of wp_title() a bit -- see
    	 * digi_filter_wp_title() in functions.php.
    	 */
    	wp_title( '|', true, 'right' );
    
    	?></title>

    I tried editing it earlier as a few hours ago, the title is always being doubled (i.e. Portfolio Portfolio instead of just saying Portfolio) so what I did is I added the // before the title as shown above. For some reason it was corrected.

    I'm totally new to wordpress and I can't seem to get support from the theme provider.

    You can download the theme here for free.

    Thanks a bunch.

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    is_home() checks for the blog page; so if you don't want a fixed text to show, then remove the offending line from the code;

    like so:

    title>
    
    <?php if (is_home()) { ?>
    <?php } else { ?>
    <?php //the_title(); ?>
    <?php } ?>
    <?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 * We filter the output of wp_title() a bit -- see
    	 * digi_filter_wp_title() in functions.php.
    	 */
    	wp_title( '|', true, 'right' );
    
    	?></title>

    btw: the theme's download requires a signup - and that makes it technically not free.

  5. iamjace.m
    Member
    Posted 1 year ago #

    That went well. Thanks for your help @alchymyth.

    I was having second thoughts in deleting lines on the code as I'm a major noobie. Thanks a lot for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags