WordPress.org

Ready to get started?Download WordPress

Forums

Removing Seach Box From Inove Theme (7 posts)

  1. sbp8610
    Member
    Posted 4 years ago #

    I've spent many hours trying to find an answer to this but I just can't seem to find the code for the search box anywhere in any of my files.

    I've read through the header.php many times, the sidebar.php, there is even a search.php and I tried deleting that but I still can't seem to figure it out.

    I just want the search box removed from the top of my inove theme.

    My website is http://www.westendbaptistchapel.com

    Thanks,
    Scott

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Have you tried looking for, and removing, <?php get_search_form();?>?

  3. sbp8610
    Member
    Posted 4 years ago #

    I've looked. The word "search" is not in the header.php file at all, yet there is a seach box in the header.

    Or at least the search box is listed where the pages links are listed right beneath title. Would this be located in another file?

  4. Devin Price
    Member
    Posted 4 years ago #

    Where did you download the template? I'll take a look through the files.

    Can you paste the header/navigation source in so we can take a look?

  5. sbp8610
    Member
    Posted 4 years ago #

    I'm pretty sure I got it from wordpress.org One of their most downloaded templates I believe.

    Here is the source for header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://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 = 'http://' . $options['feed_url'];
    }
    } else {
    $feed = get_bloginfo('rss2_url');
    }
    ?>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://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" />

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    <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">

  6. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    try and add 'display:none;' to #searchbox in style.css:

    #searchbox {
    	background: url(img/searchbox.gif) no-repeat;
    	width:209px;
    	height:21px;
    	display:block;
    	float:right;
    	margin-top:4px;
    	margin-right:10px !important;
    	margin-right:5px;
    	padding:3px 2px;
    display:none;
    }
  7. sbp8610
    Member
    Posted 4 years ago #

    Thank you that did it!

Topic Closed

This topic has been closed to new replies.

About this Topic