• Resolved dimantos

    (@dimantos)


    Hi. First of all, thanks for the great theme. I do like it! 🙂 But also I have a problem with title. Look please dimantos.ru The title “Dmitry’s Blog” is twice but in the settings obviously I wrote just one. How can I resolve this issue? Really appreciate your help.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Theme Author acosmin

    (@acosmin)

    Thread Starter dimantos

    (@dimantos)

    Well, I just yesterday installed 1.0.8 version.

    Theme Author acosmin

    (@acosmin)

    If you are not using a child theme then it might be a plugin (maybe a SEO one) that does something to your title. Check/see and maybe disable that option.

    Thread Starter dimantos

    (@dimantos)

    I have installed WordPress SEO by Yoast and there changed the title like %%sitename%%

    Theme Author acosmin

    (@acosmin)

    The problem is solved?

    Thread Starter dimantos

    (@dimantos)

    Well, I’m not sure. I’ve disabled all plugins and still “the title is twice” 🙁

    Theme Author acosmin

    (@acosmin)

    a few moments ago it was one time. what did you do?

    Thread Starter dimantos

    (@dimantos)

    I DISABLED WordPress SEO by Yoast plugin. When it works, it’s ok. If I turn off there is again this error “twice title”

    Theme Author acosmin

    (@acosmin)

    Then don’t disable WordPress SEO… The theme doesn’t do anything to the title, it uses the default WP title tag. Try and see if it does the same with other themes, like twentyfifteen.

    Thread Starter dimantos

    (@dimantos)

    With Twenty Fifteen not problems, i’ve checked

    Thread Starter dimantos

    (@dimantos)

    I’ve tried disable all plugins and install again 1.0.8 version from Word Press site. And there is still mistake :(( Okey, I gonna use SEO by Yoast plugin to fix this problem/

    Theme Author acosmin

    (@acosmin)

    Try removing this from functions.php:

    /*  Title - Backwards compatibility
    /* ------------------------------------ */
    if ( ! function_exists( '_wp_render_title_tag' ) ) {
        function ac_render_title() {
    		?>
    		<title><?php wp_title( '|', true, 'right' ); ?></title>
    		<?php
    	}
        add_action( 'wp_head', 'ac_render_title' );
    }

    even though I don’t think it will help.

    Thread Starter dimantos

    (@dimantos)

    Doesn’t work 🙁

    Theme Author acosmin

    (@acosmin)

    I did a little digging and it’s my fault. I forgot to remove some lines from functions.php. You can open that file and remove the following:

    /*  Title formatting
    /* ------------------------------------ */
    if ( ! function_exists( 'ac_wp_title' ) ) {
    
    	function ac_wp_title( $title, $sep ) {
    		global $paged, $page;
    
    		if ( is_feed() ) {
    			return $title;
    		}
    
    		// Add the site name.
    		$title .= get_bloginfo( 'name' );
    
    		// Add the site description for the home/front page.
    		$site_description = get_bloginfo( 'description', 'display' );
    		if ( $site_description && ( is_home() || is_front_page() ) ) {
    			$title = "$title $sep $site_description";
    		}
    
    		// Add a page number if necessary.
    		if ( $paged >= 2 || $page >= 2 ) {
    			$title = "$title $sep " . sprintf( __( 'Page %s', 'acosmin' ), max( $paged, $page ) );
    		}
    
    		return $title;
    
    	}
    
    }
    add_filter( 'wp_title', 'ac_wp_title', 10, 2 );

    Sorry for any problems caused! I will push an update as soon as possible.

    Also, thank you for pointing out the issue!

    Thread Starter dimantos

    (@dimantos)

    WOW. Finally It works. Thanks a lot :)))

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘The title is twice’ is closed to new replies.