• Mike

    (@mikefarrell)


    Hi

    I am developing a property site so I want a search bar which would need to be quite an advanced search so people can search based on different criteria. I also want the search bar in th middle of th remain body of the page – just like Google for want of an example.

    I have 2 questions:

    1) will the advanced search plug-in provide me what I need for the property search?

    2) how do I position the search bar where I want it? … I see the wordpress search widget can only be positioned in the side bar or at the footer? … Do I need to edit some CSS code to put the search bar where I want? …

    Hope somebody can help.

    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Mike,

    1. Your advanced custom search plugin should work if it support search from custom post type i.e. property cpt (custom post type) in this case

    e.g. a plugin like this
    https://www.ads-software.com/plugins/advanced-custom-post-search/

    2. Now a days most plugins offer short-codes, which you can use to output your stuff..search form in this case. You can use the short-code provided by your search plugin and embed it in just any post/page inside the content body, this way you can have your search form appear in the center of the page body as you wanted. (I see above plugin offers shortcodes and also support custom post type. Sorry I have not used that plugin before so you have to test)

    Thread Starter Mike

    (@mikefarrell)

    Thanks

    That looks the kind of plug-in I need by the looks ..

    I don’t know much about short codes but I’m guessing that I need to edit CSS code in order to place this search widget anywhere I like – right?

    How big a job is that for a starter like me?

    I asked this question before and somebody else told me I had to ‘edit the header file’ in order to place a search bar in the middle of the page? … Do you know what they mean ? … Maybe they thought I wanted it high up where the logo of the site is?

    Just finding my feet here …

    Mike

    I don’t know much about short codes but I’m guessing that I need to edit CSS code in order to place this search widget anywhere I like – right?

    The whole point of shortcodes is that you don’t need to edit any files to use them. Shortcodes are added to the content area when editing Pages or Posts. Some plugins also offer shortcodes that can be used within in a Text widget.

    Thread Starter Mike

    (@mikefarrell)

    Great

    So you’re saying by choosing a plug-in which supports short codes – just like the link you sent – I can position my search bar ANYWHERE on my site?

    I think I have chosen a nice theme now and it has a built in search facility – I guess I can just override that with my plug-in if it doesn’t work for me?

    I like this sites search facility:

    https://www.belvoir.co.uk

    Is this easily do-able with the advanced search plug-in and short codes you are talking about?

    Mike

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