• Hi All,

    Can’t work out some technical stuff with this search box…hoping someone can help me out.

    1. As you see from this site https://www.micromilestones.com
    the word ‘go’ is to the left but when I switch it to right it just goes to the bottom of the box and throws the navigation box off.

    2. Is there a way to underline the word go?

    3. Currently when I search for something and no results are generated, I get a blank page. I would like to add “Your search request generated no results”. do you know where I can add this?

    4. And lastly, (sorry for the long thread) currently the site in Safari shows a line on the top left. The is the h2 position (it was showing the word ‘Search’ b4) so I changed it to zero font-size

    h2, h2 a {
    color: #000;
    font-size: 0;
    margin-bottom: 8px;
    font-weight: normal;
    margin-top: 0;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    which got rid of it but left the line…any ideas how to fix this?

    Thanks so much for any help you can give me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. as well as changing searchform.php, you’d also need to edit the theme’s stylesheet – specifically #searchform input#searchsubmit.

    2. Yes – using CSS but I wouldn’t advise it. It’s a submit button – not a link.

    3. You’d need to edit search.php and add your line to the bottom of the Loop:

    <?php endwhile; ?>
    <?php else : ?>
    <p>Your search request generated no results.</p>
    <?php endif;?>

    4.

    so I changed it to zero font-size

    Bad idea. edit the relevant template file and remove the heading if you don’t want to display it.

    Thread Starter mwelch

    (@mwelch)

    thanks so much esmi..will work on these

    Thread Starter mwelch

    (@mwelch)

    ok…must of been tired, b/c most of this stuff I should of caught. Anyway, thought I’d post the results in case anyone else had similar challenges.

    to get the submit button on the right I changed the following (of course may be a bit different for your template- but you get the idea)

    #searchform {
    padding:0;
    margin:0;
    float: right;
    margin-top: 7px;
    clear: left;
    }
    #searchform input#s {
    margin:1px;
    padding-left: 5px;
    color: #666;
    width: 125px;
    height:16px;
    font-size:11px;
    padding-top:2px;
    float: left;
    background: #fff;
    border: solid 1px #666;
    }

    #searchform input#searchsubmit {
    clear: right;
    float: right;
    background: #fff;
    border: solid 0px #666;
    border-right: solid 0px #666;
    margin-top: 1.7px;
    cursor: pointer;

    and as for #4 (thanks again esmi for pointing out what I was doing wrong)- in the searchform.php file:

    the very first line is <h2>Search</h2> >>>> just deleted the ‘Search’ – can’t believe I completely missed that one ??

    Anyway, hope this helps others!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘issues with my search form’ is closed to new replies.