• Resolved gabrielcastillo

    (@gabrielcastillo)


    I am having trouble trying to find issue with theme or plugin. I am using a custom theme with free yoast plugin.

    Yoast plugin is outputting the site title before the template file is being loaded and before the doc type declaration. I can’t seem to find the issue with the theme.

    Example: My site title <!DOCTYPE html>

    My header file is very basic.
    has anyone come across this before?

    Here is a screen shot:

    screenshot 1

    Screenshot 2

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hello,

    Upon checking your website, it looks like the Yoast SEO plugin is outputting the <title> tag as expected and isn’t before the doc type declaration. Were you able to resolve this issue?

    Just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    Thread Starter gabrielcastillo

    (@gabrielcastillo)

    @mikes41720 Thank you for responding.. I had to disable the plugin, because the site is live.

    Thank you for taking the time to respond. Before I submitted this post, I did all the mentioned steps above, Except for changing themes.

    I do believe their is a conflict with the theme and plugin, but not sure where. The only code in my header file is:

    <head>
    
    	<?php if (is_search()) { ?>
    
    	   <meta name="robots" content="noindex, nofollow" />
    
    	<?php } ?>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    	<meta name="viewport" content="width=device-width, initial-scale=1.0" >
    	<title>
    
    		<?php // WordPress custom title script
    
    		// is the current page a tag archive page?
    		if (function_exists('is_tag') && is_tag()) { 
    
    			// if so, display this custom title
    			echo 'Tag Archive for &quot;'.$tag.'&quot; - '; 
    
    		// or, is the page an archive page?
    		} elseif (is_archive()) { 
    
    			// if so, display this custom title
    			wp_title(''); echo ' Archive - '; 
    
    		// or, is the page a search page?
    		} elseif (is_search()) { 
    
    			// if so, display this custom title
    			echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; 
    
    		// or, is the page a single post or a literal page?
    		} elseif (!(is_404()) && (is_single()) || (is_page())) { 
    
    			// if so, display this custom title
    			wp_title(''); echo ' - '; 
    
    		// or, is the page an error page?
    		} elseif (is_404()) {
    
    			// yep, you guessed it
    			echo 'Not Found - '; 
    
    		}
    		// finally, display the blog name for all page types
    		bloginfo('name'); 
    
    		?>
    
    		</title>
    
    	<!-- html5.js for IE less than 9 -->
    
    	<!--[if lt IE 9]>
    
    		<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    
    	<![endif]-->
    
    	<!-- css3-mediaqueries.js for IE less than 9 -->
    
    	<!--[if lt IE 9]>
    
    		<script src="https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
    
    	<![endif]-->
    
    	<!--[if IE]>
    
    	     <style type="text/css">
    
    	         .timer { display: none !important; }
    
    	         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
    
    	    </style>
    
    	<![endif]-->
    
    	
    
    	<?php wp_head(); ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/globals.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/typography.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/grid.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ui.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/forms.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/mobile.css" media="all">
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/stylesheet.css" media="all">
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" media="all"/>
    <link rel="shortcut icon" href="<?php echo get_option('lbd_favicon'); ?>" type="image/x-icon" />
    
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
    
    <style type="text/css">.accordion{margin:50px}.accordion dt{background:#454545}.accordion dt,.accordion dd{padding:10px;border:1px solid black;border-top:0}.accordion dt:first-child{border-top:1px solid black}.accordion dt a{display:block;color:white;font-weight:700}.accordion dd{border-top:0;background:#f0f0f0;font-size:12px}</style>
    
    </head>

    I don’t have any other code dealing with the header or theme support. So not sure where the conflict would be.

    Plugin Support devnihil

    (@devnihil)

    @gabrielcastillo We understand you had to disable the plugin due to it being a live site. Are you able to configure a staging site to test whether the theme is causing the issue?

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Title Output’ is closed to new replies.