Forums

Can't remove Search from Red_Nylon theme (5 posts)

  1. vadarfone
    Member
    Posted 2 years ago #

    Hi guys.

    First post here, so hi!

    OK, I am using the Red_Nylon theme, which is really cool, but I have modified it a bit.

    I added a Search Widget to the sidebar which I want to keep, but that means I want to get rid of the original Search function which is now sitting above that.

    This is obviously hard coded in somehow, and not a widget, so how do I get rid of it?

    Thanks in advance for any help you give me.

  2. rate4d
    Member
    Posted 2 years ago #

    Open:
    wp-content/themes/red-nylon/index.php
    wp-content/themes/red-nylon/single.php

    Find:

    <div id="subcontainer1">
    
    		<div id="wrapsearch">
    			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    		</div>
    
    		<?php get_sidebar(); ?>
    
    	</div>

    Remove this part of code from these two files.If you want you can remove 734-788 lines in css by default, but it's not compulsory.
    :)

  3. vadarfone
    Member
    Posted 2 years ago #

    Hi

    I did what you suggested and now I am getting this error...

    Fatal error: Call to undefined function language_attributes() in /home1/incenti7/public_html/japanhacker/index.php on line 1

    My site does not even load now!!

    Help!

  4. vadarfone
    Member
    Posted 2 years ago #

    When I remove the language attributes line from index.php, the next function causes an error too...

    Any ideas what is causing this? It only started happening when I removed the sections of code, as suggested.

  5. vadarfone
    Member
    Posted 2 years ago #

    OK, I put the original index.php back into the root from the WordPress download.

    The site loads now, but everything is crammed into the sidebar for some reason.

    I am new to all this, so any help would be greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.