Two sets of Meta Information
-
I have read various instances where all in one SEO is not working right, because code in the header.php is also populating meta data. I understand that I have to delete this from the header.php file, but I just do not know which piece it is… Need help please. Here is my header file.
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> > <!--<![endif]--> <head> <meta charset="<?php bloginfo('charset'); ?>" /> <!-- Set the viewport width to device width for mobile --> <meta name="viewport" content="width=device-width,initial-scale=1"/> <title><?php echo " | ".bloginfo('name').get_bloginfo('description'); ?></title> <meta name="description" content="<?php echo get_bloginfo('description'); ?>"/> <meta name="keywords" content="<?php bloginfo('categories'); ?>"/> <!-- IE Fix for HTML5 Tags --> <!--[if lt IE 9]> <script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <style type="text/css"> #ticker ul.tweet_list { height:55px; overflow-y:hidden; } #ticker .tweet_list li { height:55px; } </style> <?php // get_template_part('admin/theme-options-vars'); //require( dirname( __FILE__ ) . "/admin/theme-options-vars.php" ); $theme_option = get_option('theme_persona_wp_options'); ?> <style type="text/css"> <?php /*Background Images*/ if($theme_option['parallax_image']!==''): echo '.page-1{ background-image:url('.$theme_option['parallax_image'].') !important; }'."\n"; endif; if($theme_option['parallax_image_two']!==''): echo '.page-2 { background-image:url('.$theme_option['parallax_image_two'].') !important; }'."\n"; endif; if($theme_option['parallax_image_three']!==''): echo '.page-3{ background-image:url('.$theme_option['parallax_image_three'].') !important; }'."\n"; endif; if($theme_option['parallax_image_four']!==''): echo '.page-4{ background-image:url('.$theme_option['parallax_image_four'].') !important; }'."\n"; endif; if($theme_option['parallax_image_five']!==''): echo '.page-5{ background-image:url('.$theme_option['parallax_image_five'].') !important; }'."\n"; endif; if($theme_option['parallax_image_six']!==''): echo '.page-6{ background-image:url('.$theme_option['parallax_image_six'].') !important; }'."\n"; endif; if($theme_option['parallax_image_seven']!==''): echo '.page-7{ background-image:url('.$theme_option['parallax_image_seven'].') !important; }'."\n"; endif; /*Overlay layers*/ if($theme_option['parallax_image_one_ovl']!==''): echo '.bg-1{ background-image:url('.$theme_option['parallax_image_one_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_two_ovl']!==''): echo '.bg-2{ background-image:url('.$theme_option['parallax_image_two_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_three_ovl']!==''): echo '.bg-3{ background-image:url('.$theme_option['parallax_image_three_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_four_ovl']!==''): echo '.bg-4{ background-image:url('.$theme_option['parallax_image_four_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_five_ovl']!==''): echo '.bg-5{ background-image:url('.$theme_option['parallax_image_five_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_six_ovl']!==''): echo '.bg-6{ background-image:url('.$theme_option['parallax_image_six_ovl'].') !important; }'."\n"; endif; if($theme_option['parallax_image_seven_ovl']!==''): echo '.bg-7{ background-image:url('.$theme_option['parallax_image_seven_ovl'].') !important; }'."\n"; endif; /*Theme color change*/ $theme_color_scheme = $theme_option['theme_color_scheme']; if($theme_color_scheme !='') { echo ".color-high{ color: $theme_color_scheme !important;}\n"; echo ".menuhover{ border-bottom: solid 4px $theme_color_scheme !important;}\n"; echo ".menunormal{ border-bottom: solid 4px #000 !important;}\n"; echo "a:hover{ color:$theme_color_scheme !important; }\n"; echo ".credit-txt a:hover{ color:$theme_color_scheme !important; }\n"; echo ".services-info h3{ border-bottom:solid 2px $theme_color_scheme !important; }\n"; echo ".services-promo h3{ border-bottom:solid 2px $theme_color_scheme !important; }\n"; echo ".services-testimonial h4{ border-bottom:solid 2px $theme_color_scheme !important; }\n"; echo ".skill-info h3{ border-bottom:solid 2px $theme_color_scheme !important; }"; echo ".bar{background:$theme_color_scheme !important;}\n"; echo ".framework-demo h3, .framework-demo h4{ border-bottom: 2px solid $theme_color_scheme !important; }\n"; echo "#work-intro{ border-bottom:solid 1px $theme_color_scheme !important; border-top:solid 1px $theme_color_scheme !important; }\n"; echo ".work-item-name{ color:$theme_color_scheme !important; }\n"; echo ".contact a{ color:$theme_color_scheme !important; }\n"; echo ".filter a:hover, .current a {color:$theme_color_scheme !important;}\n"; echo ".contact-icons li span {color:$theme_color_scheme !important;}"; echo ".bloghead a{ color: $theme_color_scheme !important;}\n"; echo ".skill-info a{ color: $theme_color_scheme !important;}\n"; echo ".post-block h3 { border-bottom-color: $theme_color_scheme !important;}\n"; echo ".blog-border { border-bottom-color: $theme_color_scheme !important;}\n"; echo ".blog-border-alt { border-color: $theme_color_scheme !important;}\n"; echo "a { color:#333 !important; }\n"; echo ".author { background:#e8e8e8;}\n"; echo ".panel { padding:5px; border-top:none; border-right: none; border-left: none;}\n"; } /*Custom Page height adjustments*/ if($theme_option['page_1_height']!=='' OR $theme_option['page_1_height'] > 200): echo '.page-1{ min-height:'.$theme_option['page_1_height'].'px !important; }'."\n"; endif; if($theme_option['page_2_height']!=='' OR $theme_option['page_2_height'] > 200): echo '.page-2{ min-height:'.$theme_option['page_2_height'].'px !important; }'."\n"; endif; if($theme_option['page_3_height']!=='' OR $theme_option['page_3_height'] > 200): echo '.page-3{ min-height:'.$theme_option['page_3_height'].'px !important; }'."\n"; endif; if($theme_option['page_4_height']!=='' OR $theme_option['page_4_height'] > 200): echo '.page-4{ min-height:'.$theme_option['page_4_height'].'px !important; }'."\n"; endif; if($theme_option['page_5_height']!=='' OR $theme_option['page_5_height'] > 200): echo '.page-5{ min-height:'.$theme_option['page_5_height'].'px !important; }'."\n"; endif; if($theme_option['page_6_height']!=='' OR $theme_option['page_6_height'] > 200): echo '.page-6{ min-height:'.$theme_option['page_6_height'].'px !important; }'."\n"; endif; if($theme_option['page_7_height']!=='' OR $theme_option['page_7_height'] > 200): echo '.page-7{ min-height:'.$theme_option['page_7_height'].'px !important; }'."\n"; endif; //Additional CSS rules if($theme_option['additional_css']!==''): echo $theme_option['additional_css']."\n"; endif; ?> </style> <?php wp_head(); ?> </head> <body <?php body_class(); ?>>
Thank you for all your help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Two sets of Meta Information’ is closed to new replies.