Hello, I have been trying for hours to change the meta keywords and description for my blog. I am almost sure I've narrowed it down to this spot where it is being automated. However I cant actually find where to change it ? How do I find home_meta_title and things like that to change them.
<?php global $site_url, $template_url;
?><title><?php
if (is_home () || (is_front_page()) ) {
if( get_theme_mod('home_meta_title') ){
echo get_theme_mod('home_meta_title');
}else{
bloginfo('name');
}
} elseif ( is_category() ) {
single_cat_title(); echo ' - ' ; bloginfo('name');
} elseif (is_single() ) {
$customField = get_post_meta($post->ID, 'metatitle', true);
if (!empty($customField)) {
echo $customField;
} else {
single_post_title();
}
} elseif (is_page() ) {
$customField = get_post_meta($post->ID, 'metatitle', true);
if (!empty($customField)) {
echo $customField;
}
} else {
wp_title('',true);
} ?></title>
<meta name="description" content="<?php
if ( (is_home()) || (is_front_page()) ) {
if( get_theme_mod('home_meta_description') ){
echo get_theme_mod('home_meta_description');
}else{
bloginfo('name');
}
} elseif(is_category()) {
echo category_description();
} else {
echo get_post_meta($post->ID, "metadescription", true);
}?>">
<meta name="keywords" content="<?php
if ( (is_home()) || (is_front_page())|| (is_category()) ) {
if( get_theme_mod('home_meta_keywords') ){
echo get_theme_mod('home_meta_keywords');
}else{
bloginfo('name');
}
} else {
echo get_post_meta($post->ID, "metakeywords", true);
}?>">
<?php //webmaster meta codes
if( get_theme_mod('webmaster_g') ){
echo '<meta name="verify-v1" content="'.get_theme_mod('webmaster_g').'" >';
}?>
<?php
if( get_theme_mod('webmaster_y') ){
echo '<meta name="y_key" content="'.get_theme_mod('webmaster_y').'" >';
}?>
<?php
if( get_theme_mod('webmaster_b') ){
echo '<meta name="msvalidate.01" content="'.get_theme_mod('webmaster_b').'" >';
} ?>