[Plugin: WordPress SEO by Yoast] Plugin not working properly
-
WordPress version: 3.4.2
WordPress SEO version: 1.2.8.5I did this: i tried to set all my pages posts ect with the right titles , keywords and description.
I expected the plugin to do this: i was expecting to see the change on google snippets, i thought o find the same of the preview that the plugin offers
Instead it did this: but i just find my website snippets all messed up, i dont know what i did wrong.
-
this is my hear.php
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. Or use pastebin.com instead. ]
<head> <title><?php wp_title(''); ?></title> <meta name="description" content="<?php bloginfo( 'description' ); ?>" /> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" /> <?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="https://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="https://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" alt="" /></a> </div>
i think my problem is here.
please help me
i fixed something, now the head of header.php is like this. but still same problem.
<head> <title><?php wp_title(''); ?></title> <meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" /> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" /> <?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="https://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="https://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" alt="" /></a> </div> <![endif]--> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/normalize.css" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/prettyPhoto.css" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/grid.css" /> <?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?> <!--[if lt IE 9]> <style type="text/css"> .button, .dropcap, .featured-thumbnail, .featured-thumbnail img, .wp-pagenavi a, .wp-pagenavi span, li.comment .avatar, #top-search #submit, .wpcf7-form input[type="submit"], .wpcf7-form input[type="reset"], .tags-cloud a, .tagcloud a, .popular-posts li .post-thumb, .popular-posts li .post-thumb .thumbnail, #gallery .portfolio li a.image-wrap, #gallery .portfolio li a.image-wrap img, .text-icon { behavior:url(<?php bloginfo('stylesheet_directory'); ?>/PIE.php) } </style> <![endif]--> <script type="text/javascript"> // initialise plugins jQuery(function(){ // main navigation init jQuery('ul.sf-menu').superfish({ delay: <?php echo of_get_option('sf_delay'); ?>, // one second delay on mouseout animation: {opacity:'<?php echo of_get_option('sf_f_animation'); ?>'<?php if (of_get_option('sf_sl_animation')=='show') { ?>,height:'<?php echo of_get_option('sf_sl_animation'); ?>'<?php } ?>}, // fade-in and slide-down animation speed: '<?php echo of_get_option('sf_speed'); ?>', // faster animation speed autoArrows: <?php echo of_get_option('sf_arrows'); ?>, // generation of arrow mark-up (for submenu) dropShadows: <?php echo of_get_option('sf_shadows'); ?> // drop shadows (for submenu) }); // prettyphoto init jQuery("a[rel^='prettyPhoto']").prettyPhoto({ animation_speed:'normal', slideshow:5000, autoplay_slideshow: false, overlay_gallery: true }); }); // Init for audiojs audiojs.events.ready(function() { var as = audiojs.createAll(); }); $(function(){ $('.after-content-area .latestpost li:nth-child(3n), .recent-posts.general li:nth-child(3n), .recent-posts.services li:nth-child(2n), .recent-posts.team li:nth-child(2n), .recent-posts.clients li:nth-child(5n)').addClass('nomargin'); $('.recent-posts.team li:nth-child(4n), .recent-posts.team li:nth-child(4n-1)').addClass('img-right'); $('#widget-header .social-networks li a').append('<span class="line-bot"></span>'); if ($.browser.opera || $.browser.msie) { $('#widget-header .social-networks li a').hover(function(){ $(this).find('.line-bot').stop().animate({width:'100%', left:0}) }, function(){ $(this).find('.line-bot').stop().animate({width:0, left:'50%'}) }); } else { $('#widget-header .social-networks li a').hover(function(){ $(this).find('.line-bot').stop().animate({width:'100%', left:'0%'}) }, function(){ $(this).find('.line-bot').stop().animate({width:'0%', left:'50%'}) }); } }); </script> <script type="text/javascript"> jQuery(window).load(function() { }); </script> <!-- Custom CSS --> <?php if(of_get_option('custom_css') != ''){?> <style type="text/css"> <?php echo of_get_option('custom_css' ) ?> </style> <?php }?> <style type="text/css"> <?php $background = of_get_option('body_background'); if ($background != '') { if ($background['image'] != '') { echo 'body { background-image:url('.$background['image']. '); background-repeat:'.$background['repeat'].'; background-position:'.$background['position'].'; background-attachment:'.$background['attachment'].'; }'; } if($background['color'] != '') { echo 'body { background-color:'.$background['color']. '}'; } }; ?> <?php $header_styling = of_get_option('header_color'); if($header_styling != '') { echo '#header {background-color:'.$header_styling.'}'; } ?> <?php $links_styling = of_get_option('links_color'); if($links_styling) { echo 'a{color:'.$links_styling.'}'; echo '.button {background:'.$links_styling.'}'; } ?> <?php $body_typography = of_get_option('body_typography'); if($body_typography) { echo 'body {font-family:'.$body_typography['face'].'; color:'.$body_typography['color'].'}'; echo '#main {font-size:'.$body_typography['size'].'; font-style:'.$body_typography['style'].';}'; } ?> </style> <?php /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head>
- The topic ‘[Plugin: WordPress SEO by Yoast] Plugin not working properly’ is closed to new replies.