• Resolved Joliving4Jesus

    (@joliving4jesus)


    I am pretty new to wordpress and just created and installed my own personal header, but the search box and RSS feed are in the way and blocking part of my header…here is my site https://www.joannalynnphoto.com to see what I mean…I have been erasing images, changing codes, etc half the night but cannot get these images and boxes out of the header, any idea’s? Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Michael

    (@alchymyth)

    make a backup copy of your theme files before editing

    look for a matching pattern in header.php:

    </h1>
       </div>
     <a href="......?feed=rss2" id="rss-feed" title="Entries RSS">RSS FEED</a>

    and remove all from and including <a href= to </a>

    and also in header.php, search for a pattern like this (identify beginning and end of it):

    <div id="search-area">
             <form method="get" id="searchform" action="http ........ from this blog." title="Search from this blog." id="search-button" type="image"></div>
        </form>
          </div>

    if you are sure you have the right code, delete it.

    Thread Starter Joliving4Jesus

    (@joliving4jesus)

    Thanks, I was able to get the RSS feed off but I am a little confused on getting the search box off, I can’t find a code to match like the one you have above, this is my code that involves something about a search area: Could you tell me which line I need to erase?

    <div id=”search-area”>
    <?php if ($options[‘use_google_search’]) : ?>
    <form action=”https://www.google.com/cse&#8221; method=”get” id=”searchform”>
    <div><input type=”text” value=”<?php _e(‘Google Search’,’piano-black’); ?>” name=”q” id=”search-input” onfocus=”this.value=”; changefc(‘white’);” /></div>

    <div><input type=”image” src=”<?php bloginfo(‘template_url’); ?>/img/search-button.gif” name=”sa” alt=”<?php _e(‘Search from this blog.’,’piano-black’); ?>” title=”<?php _e(‘Search from this blog.’,’piano-black’); ?>” id=”search-button” />
    <input type=”hidden” name=”cx” value=”<?php echo $options[‘custom_search_id’]; ?>” />
    <input type=”hidden” name=”ie” value=”UTF-8″ />
    </div>
    </form>
    <?php else: ?>
    <form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
    <div><input type=”text” value=”<?php _e(‘Search’,’piano-black’); ?>” name=”s” id=”search-input” onfocus=”this.value=”; changefc(‘white’);” /></div>
    <div><input type=”image” src=”<?php bloginfo(‘template_url’); ?>/img/search-button.gif” alt=”<?php _e(‘Search from this blog.’,’piano-black’); ?>” title=”<?php _e(‘Search from this blog.’,’piano-black’); ?>” id=”search-button” /></div>
    </form>
    <?php endif; ?>
    </div>
    <?php endif; ?>

    Michael

    (@alchymyth)

    as far as i can see,
    you could basically delete nearly all the code that you have posted,
    just leave the last line: <?php endif; ?>

    Thread Starter Joliving4Jesus

    (@joliving4jesus)

    Hmmm….it took it off but distored the header a bit by making the background blend over the header…I guess I need to figure out which link got the search box off.

    Michael

    (@alchymyth)

    you accidentally deleted the end div of

    <div id="logo">
        <a href="https://www.joannalynnphoto.com/"></a>
    </div> <!-- this one needs to go back in -->

    Thread Starter Joliving4Jesus

    (@joliving4jesus)

    You mean this? </div><!– #header end –>

    Thats still there, every code I tried to remove from the above message disorts the header with the background, I am stumped on this one.

    Michael

    (@alchymyth)

    i still mean this one:

    <div id="logo">
        <a href="<?php ..... ?>"></a>
    </div> <!-- this one needs to go back in -->

    it is the one that closes the div #logo.

    (the one before <div id="search-area">)

    Thread Starter Joliving4Jesus

    (@joliving4jesus)

    Like a dummy I actually just noticed my theme gives me the option to hide search box, so this fixed my problem, thanks for the help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Need to erase search box and RSS feed in header’ is closed to new replies.