• Hey Team,
    I am using the inove theme and I am having problems getting the All in one seo pack to write meta tags, and to replace the title of the web page. I have been told to put <?php wp_head(); ?> somewhere before the ‘</head>’ tag, but I dont see one in the header.php

    Here is the code, what do I need to do??

    <!-- header START -->
    <div id="header">
    
    	<!-- banner START -->
    	<?php if( $options['banner_content'] && (
    		($options['banner_registered'] && $user_ID) ||
    		($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) ||
    		($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH]))
    	) ) : ?>
    		<div class="banner">
    			<?php echo($options['banner_content']); ?>
    		</div>
    	<?php endif; ?>
    	<!-- banner END -->
    
    	<?php wp_head(); ?>
    	<div class="fixed"></div>
    </div>
    <!-- header END -->
    
    <!-- navigation START -->
    <div id="navigation">
    	<!-- menus START -->
    	<ul id="menus">
    		<li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li>
    		<?php
    			if($options['menu_type'] == 'categories') {
    				wp_list_categories('title_li=0&orderby=name&show_count=0');
    			} else {
    				wp_list_pages('title_li=0&sort_column=menu_order');
    			}
    		?>
    		<li><a class="lastmenu" href="javascript:void(0);"></a></li>
    	</ul>
    	<!-- menus END -->
    
    	<!-- searchbox START -->
    	<div id="searchbox">
    		<?php if($options['google_cse'] && $options['google_cse_cx']) : ?>
    			<form action="https://www.google.com/cse" method="get">
    				<div class="content">
    					<input type="text" class="textfield" name="q" size="24" />
    					<input type="submit" class="button" name="sa" value="" />
    					<input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" />
    					<input type="hidden" name="ie" value="UTF-8" />
    				</div>
    			</form>
    		<?php else : ?>
    			<form action="<?php bloginfo('home'); ?>" method="get">
    				<div class="content">
    					<input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" />
    					<input type="submit" class="button" value="" />
    				</div>
    			</form>
    		<?php endif; ?>
    	</div>
    <script type="text/javascript">
    //<![CDATA[
    	var searchbox = MGJS.$("searchbox");
    	var searchtxt = MGJS.getElementsByClassName("textfield", "input", searchbox)[0];
    	var searchbtn = MGJS.getElementsByClassName("button", "input", searchbox)[0];
    	var tiptext = "<?php _e('Type text to search here...', 'inove'); ?>";
    	if(searchtxt.value == "" || searchtxt.value == tiptext) {
    		searchtxt.className += " searchtip";
    		searchtxt.value = tiptext;
    	}
    	searchtxt.onfocus = function(e) {
    		if(searchtxt.value == tiptext) {
    			searchtxt.value = "";
    			searchtxt.className = searchtxt.className.replace(" searchtip", "");
    		}
    	}
    	searchtxt.onblur = function(e) {
    		if(searchtxt.value == "") {
    			searchtxt.className += " searchtip";
    			searchtxt.value = tiptext;
    		}
    	}
    	searchbtn.onclick = function(e) {
    		if(searchtxt.value == "" || searchtxt.value == tiptext) {
    			return false;
    		}
    	}
    //]]>
    <?php wp_head(); ?>
    </script>
    	<!-- searchbox END -->
    
    	<div class="fixed"></div>
    
    </div>
    <!-- navigation END -->

Viewing 4 replies - 1 through 4 (of 4 total)
  • It seem you put “<?php wp_head(); ?>” in wrong file or tag.

    You should put it inside <head>…</head> tag, if it missing you should create your own.

    what you posted is not header.php of the inove theme.

    btw – the wp_head() code is already in header.php:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/menu.js"></script>
    	<!-- script END -->
    
    	<?php wp_head(); ?>
    </head>
    
    <?php flush(); ?>

    whatever file you posted, you better remove that wp_head() from it:

    }
    //]]>
    <?php wp_head(); ?>
    </script>
    	<!-- searchbox END -->

    that is not the header.php I know and love

    oops – alchymyth beat me

    Thread Starter txsigma

    (@txsigma)

    thanks for the help so far team…now the code i posted above came from inside the header.php file from the edit theme feature in wordpress. but when i ftp into the site and view header.php it gives me the following

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <?php
    	global $inove_nosidebar;
    	$options = get_option('inove_options');
    	if (is_home()) {
    		$home_menu = 'current_page_item';
    	} else {
    		$home_menu = 'page_item';
    	}
    	if($options['feed'] && $options['feed_url']) {
    		if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') {
    			$feed = $options['feed_url'];
    		} else {
    			$feed = 'https://' . $options['feed_url'];
    		}
    	} else {
    		$feed = get_bloginfo('rss2_url');
    	}
    ?>
    
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    
    	<link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all posts', 'inove'); ?>" href="<?php echo $feed; ?>" />
    	<link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all comments', 'inove'); ?>" href="<?php bloginfo('comments_rss2_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<!-- style START -->
    	<!-- default style -->
    	<style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style>
    	<!-- for translations -->
    	<?php if (strtoupper(get_locale()) == 'ZH_CN' || strtoupper(get_locale()) == 'ZH_TW') : ?>
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/chinese.css" type="text/css" media="screen" />
    	<?php elseif (strtoupper(get_locale()) == 'HE_IL' || strtoupper(get_locale()) == 'FA_IR' || strtoupper(get_locale()) == 'UG_CN' || strtoupper(get_locale()) == 'CKB') : ?>
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/rtl.css" type="text/css" media="screen" />
    	<?php endif; ?>
    	<!--[if IE]>
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" type="text/css" media="screen" />
    	<![endif]-->
    	<!-- style END -->
    
    	<!-- script START -->
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/base.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/menu.js"></script>
    	<!-- script END -->
    
    	<?php wp_head(); ?>
    </head>
    
    <?php flush(); ?>
    
    <body>
    <!-- wrap START -->
    <div id="wrap">
    
    <!-- container START -->
    <div id="container" <?php if($options['nosidebar'] || $inove_nosidebar){echo 'class="one-column"';} ?> >
    
    <?php include('templates/header.php'); ?>
    
    <!-- content START -->
    <div id="content">
    
    	<!-- main START -->
    	<div id="main">

    is this the correct code i should be giving you guys? what gives? what else could cause to all in one seo plugin not to work?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘All in One SEO not working with theme’ is closed to new replies.