Site Not Indexing in Search Engines
-
I have a theme (ENIGMA) free version. that’s not indexing my posts and pages I don’t know why but I suspect its from the header.php, now I install Yoast to make things right tried viewing the sitemap to see what’s and what’s not indexing in the sitemap then discovered this error
XML Parsing Error: XML or text declaration not at start of entity Location: https://www.nantsfct.org.ng/sitemap_index.xml Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.nantsfct.org.ng/main-sitemap.xsl"?> --------^
I used Yoast WordPress SEO and also tried xml-sitemap.com and this where the sitemap should show “https://www.mywebsite.com/sitemap_index.xml” but it return the same error message.
am thing of adding some header properties that will index without spoiling anything.
The code below is what I have in the header.php
</blockquote> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>><!--<![endif]--> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>" charset="<?php bloginfo('charset'); ?>" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <?php $wl_theme_options=get_option('enigma_options'); ?> <?php if($wl_theme_options['upload_image_favicon']!=''){ ?> <link rel="shortcut icon" href="<?php echo $wl_theme_options['upload_image_favicon']; ?>" /> <?php } ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> id=""> <div> <!-- Header Section --> <div class="header_section" > <div class="container" > <!-- Logo & Contact Info --> <div class="row "> <div class="col-md-6 col-sm-12"> <div claSS="logo"> <a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php if($wl_theme_options['text_title'] =="on") { echo get_bloginfo('name'); } else if($wl_theme_options['upload_image_logo']!='') { ?> <img src="<?php echo $wl_theme_options['upload_image_logo']; ?>" style="height:<?php if($wl_theme_options['height']!='') { echo $wl_theme_options['height']; } else { "80"; } ?>px; width:<?php if($wl_theme_options['width']!='') { echo $wl_theme_options['width']; } else { "200"; } ?>px;" /> <?php } else { ?> Enigma <?php } ?> </a> <p><?php bloginfo( 'description' ); ?></p> </div> </div> <?php if($wl_theme_options['header_social_media_in_enabled']=='on') { ?> <div class="col-md-6 col-sm-12"> <?php if($wl_theme_options['email_id'] || $wl_theme_options['phone_no'] !='') { ?> <ul class="head-contact-info"> <li><i class="fa fa-envelope"></i><a>"><?php echo $wl_theme_options['email_id']; ?></a></li> <li><i class="fa fa-phone"></i><?php echo $wl_theme_options['phone_no']; ?></li> <?php } ?> <ul class="social"> <?php if($wl_theme_options['fb_link']!='') { ?> <li class="facebook" data-toggle="tooltip" data-placement="bottom" title="Facebook"><a>"><i class="fa fa-facebook"></i></a> <?php } if($wl_theme_options['twitter_link']!='') { ?> <li class="twitter" data-toggle="tooltip" data-placement="bottom" title="Twiiter"><a>"><i class="fa fa-twitter"></i></a> <?php } if($wl_theme_options['linkedin_link']!='') { ?> <li class="linkedin" data-toggle="tooltip" data-placement="bottom" title="Linkedin"><a>"><i class="fa fa-linkedin"></i></a> <?php } if($wl_theme_options['youtube_link']!='') { ?> <li class="youtube" data-toggle="tooltip" data-placement="bottom" title="Youtube"><a>"><i class="fa fa-youtube"></i></a> <?php } ?> </div> <?php } ?> </div> <!-- /Logo & Contact Info --> </div> </div> <!-- /Header Section --> <!-- Navigation menus --> <div class="navigation_menu " data-spy="affix" data-offset-top="95" id="enigma_nav_top"> <span id="header_shadow"></span> <div class="container navbar-container" > <nav class="navbar navbar-default " role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div id="menu-search"> <div id="menu" style="float: left;"> <?php wp_nav_menu( array( 'menu' => 'primary', 'theme_location' => 'primary', 'container' => 'div', 'container_class' => 'collapse navbar-collapse', 'container_id' => 'menu', 'menu_class' => 'nav navbar-nav', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker()) );?> </div> </div> </nav> </div> </div> <!-- /Navigation menus -->
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Site Not Indexing in Search Engines’ is closed to new replies.