Remove Site Name from the Titles
-
My problem is that my theme (I guess) is automatically creating a meta description from the first paragraph of the page. This meta description is taking precedent over Yoast’s meta description I have created for each page. The theme also inserts the site title(Villas Diani)in every SERP for the site, meaning I can only use a short unique page title.
Here is the code from the header.php, and I’d welcome any advice on the lines I need to remove so that there the page title and meta description showing on the search results are from the Yoast settings only.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" lang="en-US"> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="google-site-verification" content="hRZ9ZRlCURkbiJA5Ewf6VJlSfGZipdXnumAKlHcrHaQ" /> <title><?php wp_title(''); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php if(ts_get_option('ts_rss')) : echo ts_get_option('ts_rss'); else : bloginfo('rss2_url'); endif; ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php do_action('ts_before_top_wrap'); ?> <div id="top-wrap"> <div id="top"> <div class="box-wrap clearfix"> <?php if(ts_get_option('ts_header_top')) : ?> <div id="top-left" class="ts-box box-2"> <?php echo ts_get_option('ts_header_top'); ?> </div> <?php endif; ?> <?php echo apply_filters('ts_social', ts_social()); ?> </div> </div><!-- end top --> </div><!-- end top-wrap --> <?php do_action('ts_after_top_wrap'); ?> <div id="wrap"> <?php do_action('ts_before_header'); ?> <div id="header-wrap"> <div id="header" class="clearfix"> <div id="logo"> <?php $ts_logo = ts_get_option('ts_logo'); ?> <a href="<?php bloginfo('url'); ?>"><img src="<?php echo $ts_logo; ?>" alt="<?php bloginfo('name'); ?>" /></a> <?php if(get_bloginfo('description')) : ?><div id="logo-description"><?php bloginfo('description'); ?></div><?php endif; ?> </div> <?php if(function_exists('wp_nav_menu') && has_nav_menu('menu-1')) : wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'ts-menu', 'menu_class' => 'sf-menu', 'theme_location' => 'menu-1' ) ); else : ts_menu(); endif; ?> </div><!-- end header --> </div><!-- end header-wrap --> <?php do_action('ts_after_header'); ?>
Thank you very much for any help with this!
- The topic ‘Remove Site Name from the Titles’ is closed to new replies.