• Resolved riddimkilla

    (@riddimkilla)


    I get this alert when I go to the dashboard:

    Your theme contains a meta description, which blocks WordPress SEO from working properly, please delete the following line, or press fix it:
    <meta name=”description” content=”<?php echo strip_tags(get_the_excerpt()); ?>” />

    Unfortunately, the fix it button doesn’t work for my theme. Could you please advise what code I can delete manually in my header.php

    <head>
    	<?php
    		if ( is_singular() ) {
    		$seo_title = get_post_meta( $post->ID, 'accord_mb_seo_title', true );
    		$seo_keywords = get_post_meta( $post->ID, 'accord_mb_seo_keywords', true );
    		$seo_description = get_post_meta( $post->ID, 'accord_mb_seo_description', true );
    
    	 		if ($seo_title != '') { ?> <title><?php echo $seo_title; ?></title>
    			<?php } else { ?> <title><?php bloginfo('name'); ?> <?php wp_title(' | ', true, 'left'); ?></title>
    
    		<?php } if ($seo_keywords != '') { ?>
    			<meta name="keywords" content="<?php echo $seo_keywords; ?>" />
    			<?php } else { ?> <meta name="keywords" content="<?php bloginfo('name'); ?>" />
    
    		<?php } if ($seo_description != '') { ?>
    			<meta name="description" content="<?php echo  $seo_description; ?>" />
    		<?php } else { ?>
    
    	<?php } } else { ?>
    		<title>
    		<?php 
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) ) {
    		echo " | $site_description"; }
    
    		?>
    		</title>
    		<meta name="keywords" content="<?php bloginfo('name'); ?>" />
    
    	<?php } ?>
    
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    http://wordpress.org/extend/plugins/wordpress-seo/

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

    (@riddimkilla)

    ok i find the answer

    delete all and replace by

    <title><?php wp_title( '|', true, 'right' ); ?></title>

Viewing 1 replies (of 1 total)
  • The topic ‘My theme contains a meta description, which blocks WordPress SEO’ is closed to new replies.