Search widget

Support Area Forums Foxy Search widget

Viewing 5 posts - 1 through 5 (of 5 total)
URL to the page in question:
  • Author
    Posts
  • #4654
    Antons Bungis
    Participant

    Bill!

    What is the best way to make SEARCH widget look like in this (forum) page (on right sidebar) – just search field full sidebar wight with magnifier icon in it (no search button beside) and e.g. text ‘Search here…’ in it – witch disepears, when clicked there.

    Cheers,

    Antons

    P.S. in other themes there is a searchform.php to modify this – could not find it in FOXY.

    #4655
    Bill Robbins
    Moderator

    You’re welcome to add a searchform.php file to the theme if you’d like to. There is a page in the WordPress Codex that discusses it http://codex.wordpress.org/Function_Reference/get_search_form.

    There are also instructions that explain how to control it via the themes functions.php file if you’d rather go that way.

    For Foxy, I choose to hide the label and style the search box to match instead of modifying its actual functionality.

    #4724
    Antons Bungis
    Participant

    Bill,

    page is http://web.umt.lv/

    searchform.php

    form action=”/” method=”get”
    fieldset
    input type=”text” class=”field” name=”s” id=”s” placeholder=”?php esc_attr_e( ‘Meklējamā frāze…’ ); ?” /
    /fieldset
    /form

    p.s. removed all < and >

    how to put my search.png (magnifier image) to show inside search window like in this support page search

    BR,

    Antons

    #4734
    Bill Robbins
    Moderator

    Great job with the searchform.php. To add a magnifying glass to your search form, paste this to the very bottom of your style.css file:

    input#s {
    width: 140px;
    padding-left: 20px;
    background: #fff url(https://support.organizedthemes.com/wp-content/themes/reforum/images/icons/search-submit.png) no-repeat left center;
    }

    The only thing you’ll need to do is swap out the https://support.organizedthemes.com/wp-content/themes/reforum/images/icons/search-submit.png for the URL to the image you’d like to use.

    If you have any trouble, let me know.

    #4747
    Terence
    Participant

    There’s some interesting psychology to do with search boxes on websites and it goes like this…

    Since I have a limited amount of high-quality content on my website, a search-form can aggravate more than it helps.

    Why?

    Because if I had a search form, when people used it, they’d be more likely to be let down than satisfied. It’s a simple numbers game. Since I have a limited amount of high-quality content, the chances of people finding an article for their every desire is low.

    And that’s why I don’t have a search form on my website. You don’t want to put people in the position of feeling bad when browsing your site. People who feel bad about your site generally don’t buy…

    You may be different and have tons of high quality content, but I don’t. At least not yet. And when that changes, so will my use of a search form, so thanks for the ability to add one.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Search widget’ is closed to new replies.