• Resolved alexcr

    (@alexcr)


    Hello!
    I have a searchbox in the header on my website, but I don’t like it’s lenght and colour(I would want a 15-letter searchbox with white background). I want to insert one above the CATEGORIES.
    Could you please help me, how can i do it?

    Also, I would like the search to only search for post titles, not content.

    My website is [NSFW Link] https://www.pozevedete.net [NSFW Link]

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I guess you have to edit your header.php or perhaps your theme has a searchform.php OR there’s something in your style.css.

    Also, I would like the search to only search for post titles, not content.

    I wanted that too when I started with WP, apparently this is a very difficult question. Fortunately I managed to make things differently.

    Thread Starter alexcr

    (@alexcr)

    I looked in the style.css and I have something like:


    Search { height: 100px;} /* */
    .Search { width: 275px; min-height: 100px; position: absolute; top: 0px; right: 0px;}
    .Search fieldset { border: none; padding: 0px; margin: 0px;}
    .Search legend { margin: 0; padding: 0; color:#fff}
    .Search form { padding: 50px 33px 0px 33px; margin: 0px 0px 0px 0px;}
    .Search input { color: #fff; font-size: 13px; font-family: ‘Trebuchet MS’; letter-spacing: -1px; font-weight: bold; }
    .Search input.search { width: 25px; height: 25px; background: url(images/SearchButton.png) no-repeat;}
    .Search input.search:hover { background: url(images/SearchButton.png) no-repeat 0 -25px; }
    .Search input.searchIE {width: 25px; height: 25px; background: url(images/SearchButton.png) no-repeat 0 -25px; }
    .Search input.keyword { margin:0px; height:17px; border: none; background: url(images/search_pat.gif) left repeat-x; padding: 4px 0px 5px 8px; width: 185px; } “

    Do I have to modify this?

    Wow, that’s some css for a search box! My guess would be width: 275px, make it a little lower. I’m not sure if you have to edit something else, I’m not that well with css, but some trial and error will do the trick. Be sure to save an original copy of the style.css in case something goes wrong.

    Thread Starter alexcr

    (@alexcr)

    I edited from 275 to 100 but it remained the same ??
    I made a backup and now I uploaded the backup, what file permission does style.css need? 644 is ok?

    I was thinking if there is any plugin that acts like a search box…

    I am very happy with the search box that I currently have, but I want to move it above Categories and make it smaller, and change the color from gray to white.

    Would it be a good ideea if I let the search on the header? I don’t think many people see it ?? My website’s adress is in the first post.

    Thread Starter alexcr

    (@alexcr)

    I finaly made it.
    I modified the searchbar that comes with wordpress package and i am happy with it now.

    Problem resolved ??
    Thanks to those that replied and helped me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add a searchbox’ is closed to new replies.