Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #212081

    I need to clean up my <head> with this theme. Right now it is a hot mess, out of the box.
    .. Where can I edit that all of my meta data pops up higher up in my <head> section?
    I am using the WordPress SEO plugin from Joost de Valk.

    Here is an example of Yoast.com <head>, the maker of the WordPress SEO plugin.
    I would like my <head> to be the similar.

    <!DOCTYPE html>
    <html lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
    <head>
    <meta charset="UTF-8" />
    <title>Yoast • The Art & Science of Website Optimization</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.22 - http://yoast.com/wordpress/seo/ -->
    <meta name="description" content="Home of team Yoast, led by Joost de Valk, developer of many WordPress plugins and an authority on WordPress & website optimization."/>
    <link rel="canonical" href="http://yoast.com/" />
    <link rel="next" href="http://yoast.com/page/2/" />
    <link rel="publisher" href="https://plus.google.com/+Yoastcom/posts"/>
    <meta property="og:locale" content="en_US" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Yoast • The Art & Science of Website Optimization" />
    <meta property="og:description" content="Home of team Yoast, led by Joost de Valk, developer of many WordPress plugins and an authority on WordPress & website optimization." />
    <meta property="og:url" content="http://yoast.com/" />
    <meta property="og:site_name" content="Yoast" />
    <meta property="article:publisher" content="https://www.facebook.com/yoast" />
    <meta property="fb:app_id" content="293348944009456" />
    <meta property="og:image" content="http://cdn.yoast.com/wp-content/themes/yoast-v4/images/Yoast_Footer_Thumbs-Up_x2.png" />
    <meta name="msvalidate.01" content="2086DF35C7A1C3D8B7230ADD6B837EE5" />

    Now … here is what your <head> (out of the box) looks like …

    <!DOCTYPE html>
    <html lang="en-US" class="chrome chrome32 html_boxed responsive ">
    <head>
    <meta charset="UTF-8" />
    <meta name="robots" content="index, follow" />
    
    <!-- page title, displayed in your browser bar -->
    <title>Coherence WordPress Theme Demo | Just another Kriesi.at Theme Demos Sites site</title>
    
    <!-- add feeds, pingback and stuff-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="alternate" type="application/rss+xml" title="Coherence WordPress Theme Demo RSS2 Feed" href="http://www.kriesi.at/themes/coherence/feed/" />
    <link rel="pingback" href="http://www.kriesi.at/themes/coherence/xmlrpc.php" />
    
    <!-- add css stylesheets -->
    
    <link rel="stylesheet" type="text/css" media="all" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/style.css" />
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/grid.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/base.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/layout.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/shortcodes.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/slideshow.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/js/projekktor/theme/style.css" type="text/css" media="screen"/>
    
    <!-- mobile setting -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <!-- plugin and theme output with wp_head() -->
    <link rel='stylesheet' id='bbp-default-bbpress-css'  href='http://www.kriesi.at/themes/coherence/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.3' type='text/css' media='screen' />
    <script type='text/javascript' src='http://www.kriesi.at/themes/coherence/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>
    <script type='text/javascript' src='http://www.kriesi.at/themes/coherence/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
    <script type='text/javascript' src='http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/js/projekktor/projekktor.min.js?ver=1'></script>
    <script type='text/javascript' src='http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/js/avia.js?ver=1'></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.kriesi.at/themes/coherence/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.kriesi.at/themes/coherence/wp-includes/wlwmanifest.xml" /> 
    <meta name="generator" content="WordPress 3.6.1" />
    
    		<script type="text/javascript">
    			/* <![CDATA[ */
    			
    						jQuery(document).ready( function() {
    
    				/* Tab from topic title */
    				jQuery( '#bbp_topic_title' ).bind( 'keydown.editor-focus', function(e) {
    					if ( e.which != 9 )
    						return;
    
    					if ( !e.ctrlKey && !e.altKey && !e.shiftKey ) {
    						if ( typeof( tinymce ) != 'undefined' ) {
    							if ( ! tinymce.activeEditor.isHidden() ) {
    								var editor = tinymce.activeEditor.editorContainer;
    								jQuery( '#' + editor + ' td.mceToolbar > a' ).focus();
    							} else {
    								jQuery( 'textarea.bbp-the-content' ).focus();
    							}
    						} else {
    							jQuery( 'textarea.bbp-the-content' ).focus();
    						}
    
    						e.preventDefault();
    					}
    				});
    
    				/* Shift + tab from topic tags */
    				jQuery( '#bbp_topic_tags' ).bind( 'keydown.editor-focus', function(e) {
    					if ( e.which != 9 )
    						return;
    
    					if ( e.shiftKey && !e.ctrlKey && !e.altKey ) {
    						if ( typeof( tinymce ) != 'undefined' ) {
    							if ( ! tinymce.activeEditor.isHidden() ) {
    								var editor = tinymce.activeEditor.editorContainer;
    								jQuery( '#' + editor + ' td.mceToolbar > a' ).focus();
    							} else {
    								jQuery( 'textarea.bbp-the-content' ).focus();
    							}
    						} else {
    							jQuery( 'textarea.bbp-the-content' ).focus();
    						}
    
    						e.preventDefault();
    					}
    				});
    			});
    						/* ]]> */
    		</script>
    
    	<link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/plugins/avia_styleswitch/avia_styleswitch.css?v=3" type="text/css" /><script type="text/javascript" src="http://www.kriesi.at/themes/coherence/wp-content/plugins/avia_styleswitch/avia_styleswitch.js?v=2"></script>
    
    <!--
    Debugging Info for Theme support: 
    
    Theme: Coherence
    Version: 1.6
    Installed: coherence
    AviaFramework Version: 1.8
    ML:200-PU:24-PLA:2
    -->
    
    <!-- custom styles set at your backend-->
    <style type='text/css' id='dynamic-styles'>
    div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, #top .pullquote_boxed{border-color:#e1e1e1;}html, body{color: #777777;background-color:#ccc9b9;}#top .site-background, .container,  #top .main_menu .menu ul li a, .first-quote, .slideshow_container, .pointer_arrow_wrap .pointer_arrow, .related_image_wrap, .gravatar img, .comment-reply-link, #top .inner_slide .numeric_controls a, .hr_content, .news-thumb {background-color:#ffffff;color: #777777;}#top .bg_highlight, .stretch_full .portfolio-details-inner, #top .main_menu .menu ul li a:hover, .thumbnails_container, #top .pagination span, #top .pagination a, li:hover .pointer_arrow_wrap .pointer_arrow, .ajax_controlls a, .related_posts.stretch_full, .post_nav_container, #top div .numeric_controls a, .tab.active_tab, .tab_content.active_tab_content, .toggler.activeTitle{background-color:#f8f8f8;}h1, h2, h3, h4, h5, h6, #top strong, #top strong a, .sidebar .current_page_item a, #top .pagination .current, .comment-count, .callout .content-area, #top #footer strong{color:#3C3C3C;}#header .container, #socket .container, #socket .container a, .avia_wpml_language_switch, #top .slide_controls a, .invers_pointer span{color: #ffffff;background-color:#111111;}#header .container a{color: #ffffff;}#footer .container, #footer .container a, #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6, #footer .widgettitle, .contentSlideControlls a{color: #666666;background-color:#f8f8f8;}#top .primary-background, .dropcap2, #top .primary-background a, #top .social_bookmarks, #top .slide_controls a:hover, .avia_welcome_text, .avia_welcome_text a, #top .pagination a:hover, .button, #submit, #top .big_button{background-color: #94315d;color:#ffffff;border-color:#94315d;}.button:hover, .ajax_controlls a:hover, #submit:hover, #top .big_button:hover, .contentSlideControlls a:hover{background-color: #c75086;color:#ffffff;border-color:#c75086;}blockquote{border-color:#94315d;}.meta-color, .sidebar, .sidebar a, .minor-meta, .minor-meta a, .text-sep, .quote-content, .quote-content a, blockquote, .post_nav a, .comment-text, .template-search  a.news-content, .subtitle_intro, div .hr_content, .hr a {color: #9E9E9E;}a{color:#94315d;}a:hover, #footer .container a:hover, #top h1 a:hover, #top h2 a:hover, #top h3 a:hover, #top h4 a:hover, #top h5 a:hover, #top h6 a:hover,  .template-search  a.news-content:hover{color: #c75086;}.search-result-counter{color:#f8f8f8;}#top div .numeric_controls .active_item{background-color:#9E9E9E;}#footer a, #footer div, #footer span, #footer li, #footer ul {border-color: #D4D4D4;color: #8B8B8B;}::-moz-selection{background-color: #94315d;color: #ffffff;}::-webkit-selection{background-color: #94315d;color: #ffffff;}::selection{background-color: #94315d;color: #ffffff;}html.html_boxed, body{background-image: url( http://www.kriesi.at/themes/coherence/files/2011/12/knee-girl.png );}html, body{background-position: top  right;background-repeat: no-repeat;background-attachment: fixed;}#top div .avia_table table, #top div .avia_table th, #top div .avia_table td {border-color: #e1e1e1;}div .avia_table, div .avia_table td{background:#ffffff;color: #777777;}div .avia_table tr:nth-child(odd) td, div .avia_table tr:nth-child(odd) th, div .avia_table tr:nth-child(odd) .th, .avia_table .avia-button, #top .avia_table table tr.button-row td{background-color: #f8f8f8;}div .avia_table tr.description_row td, div .avia_table tr.pricing-row td, tr.pricing-row .avia-table-icon, tr.description_row .avia-table-icon{color:#ffffff;background: #94315d;}html #top .avia_table table tr td.description_column, html #top .avia_table table.description_row tr td.description_column, .avia-table-icon{border-color:#e1e1e1;color:#9E9E9E;}.avia_table .avia-button{color: #ffffff;background-color:#94315d;border-color:#94315d;}
    #top .main_menu select {
    min-width: 240px;
    padding-right:0;
    }
    
    .post-entry:hover{
    z-index:150;
    }
    h1, h2, h3, h4, h5, h6, tr.pricing-row td, #top .portfolio-title, .callout .content-area{
    font-family:'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    body, .flex_column h1, .flex_column h2, .flex_column h3, .flex_column h4, .flex_column h5, .flex_column h6, #top .widgettitle{
    font-family:'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    </style>
    
    <!-- end custom styles-->
    
    <!-- google webfont font replacement -->
    <link id="google_webfont_1" rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans" />
    
    <link rel="stylesheet" href="http://www.kriesi.at/themes/coherence/wp-content/themes/coherence/css/custom.css" type="text/css" media="screen"/>
    
    </head>

    Please let me know what file I need to edit & how I can clean up the <head> As it is right now, my SEO is hurting because of the way the <head> looks.

    • This topic was modified 6 months, 1 week ago by  adjinwis.
    • This topic was modified 6 months, 1 week ago by  adjinwis.
    #212102

    Hi adjinwis!

    That is pretty a disingenuous comparion. The only difference with how the yoast.com header is output vs the theme is where exactly the WordPress SEO plugin is outputting the meta data.

    The plugin documentation should have the information needed to assist you with that.

    The header at yoast.com extends all the way down the </head> just as you’ve shown from your default install of the theme.

    Best regards,
    Devin

    #212115

    Well .. my post wasn’t personal. My apologies if you were offended. But, the top part of the <head> is what I was talking about. If you compare the two you see what I mean.

    I was informed by the plugin that the functions.php file in the theme is what determines the way the <head> is laid out. I need all of the meta on the top of the <head> .. If I try moving the <?php wp_head(); ?> in the header.php all of the plugins break.

    Even if I used your built in SEO it still wouldn’t layout like the way I’d like it (with all of the Meta tags up top).. so please if you could give me some pointers to clean that up, I would appreciate it.

    #212150

    Hey!

    I didn’t test this but you can try to replace following code in wp-content\themes\coherence\header.php

    
    global $avia_config;
    

    with

    
    global $avia_config;
    wp_enqueue_script( 'jquery' );
    wp_head();
    

    and then remove

    
    
    <!-- plugin and theme output with wp_head() -->
    <?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();
    ?>
    
    

    and replace

    
    	wp_enqueue_script( 'jquery' );
    	wp_enqueue_script( 'avia-default' );
    

    with

    
    	wp_enqueue_script( 'avia-default' );
    

    Best regards,
    Peter

    #212382

    That is a lot better ..
    Though I notice the CSS is not the same way before the changes … It is a step in the right direction ..

    If you try it out you’ll see what I am talking about … I notice the header font changes & there are borders that pop up … but I will play with the css … until I hear back from you …

    Ps .. Awesome screen name. ha.
    Thanks again!

    • This reply was modified 6 months, 1 week ago by  adjinwis.
    #212654

    I wasn’t offended but the forums are public and it was just an incorrect comparison.

    I don’t know if WordPress SEO has a specific hook for it but it should be adding its output to the wp_head like every other plugin which hooks into the header.php file.

    What I’m guessing Yoast has done on his own site is modify the plugin either directly or with a filter to change where the meta data gets output with a new hook.

    This is definitely outside our area of support and really what Peter suggested above is change where the wp_head gets called and is a brute force solution.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Head up ; SEO’ is closed to new replies.