Removed code from header, now no keywords showing
-
Hi,
I use the Academica theme for my site https://www.englishlc.com. I also have Yoast WordPress SEO installed.
A few days ago I posted a request for what code to remove from my header to avoid duplicate meta descriptions from appearing in search engine listing.
After some advice, the following code was removed
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } ?></title> <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <meta name="description" content="<?php the_excerpt_rss(); ?>" /> <?php csv_tags(); ?> <?php endwhile; endif; elseif(is_home()) : ?> <meta name="description" content="<?php bloginfo('description'); ?>" /> <?php endif; ?>
and replaced with
<title><?php wp_title(''); ?></title>
This resolved the issue, but now I find that I have no keywords appearing in the header information. While I am aware that Google does not pay too much attention to keywords, I believe that other search engines do. Therefore, I am wondering if I can reinstate a line or several lines of the original code to return the keyword information to the header.
- The topic ‘Removed code from header, now no keywords showing’ is closed to new replies.