Double meta description
-
Hello,
I’ve been but back and forth looking at other q+a’s but can’t find how to fix.
This is my header.php<?php global $wp_locale; if (isset($wp_locale)) { $wp_locale->text_direction = 'ltr'; } ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset') ?>" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <!-- Created by Artisteer v4.3.0.60745 --> <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php remove_action('wp_head', 'wp_generator'); if (is_singular() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="art-main"> <div class="art-sheet clearfix"> <?php if(theme_has_layout_part("header")) : ?> <header class="art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?></header> <?php endif; ?> <?php if (theme_get_option('theme_use_default_menu')) { wp_nav_menu( array('theme_location' => 'primary-menu') );} else { ?><nav class="art-nav"> <?php echo theme_get_menu(array( 'source' => theme_get_option('theme_menu_source'), 'depth' => theme_get_option('theme_menu_depth'), 'menu' => 'primary-menu', 'class' => 'art-hmenu' ) ); get_sidebar('nav'); ?> </nav><?php } ?> <div class="art-layout-wrapper"> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-content">'I use artisteer to create my themes as well as yoast. I did find a fix of removing all my pages, adding a new theme and then I was able to use yoast to add the description etc. Sadly I chose ‘clear’ as my theme name and it’s already a wordpress one and I stupidly updated it loosing all my formats. I reverted to a previous theme when realising this and uploaded my theme again with a new name. The meta from the previous theme was added from the old theme again and I either have to delete everything and add each page one by one with all meta via yoast again or suffer the double meta. The answers I have found say to add this
‘remove_action(‘wp_head’, ‘wp_generator’);’
but my header.php already has this. Can someone offer me any help please. Sorry for the ramble but I am not too technical so if you can make it so obvious a 2 year old could do it, that would be really helpful.
Thank you
The topic ‘Double meta description’ is closed to new replies.