Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › "Search" display
- This topic has 21 replies, 2 voices, and was last updated 4 years, 8 months ago by
leinad06.
-
AuthorPosts
-
September 5, 2021 at 4:27 pm #34539
leinad06
ParticipantHello,
I can’t set the Ajax Search Pro plugin to appear at the top of every page / product. Can you help me?
Thanks!
Regards,
DanSeptember 6, 2021 at 9:39 am #34546Ernest Marcinko
KeymasterHi,
Do you want to palce it into the site header?
You can use the search shortcode in a menu item, as well as if your theme has a widgetized area you can place the search widget there too.
September 6, 2021 at 2:42 pm #34556leinad06
ParticipantHi,
Thank you for your prompt answer.
Yes, I want to include it in the site header. I tried both variants (short code and widget) and it’s not what I want. I used the short code in the sidebar, it’s ok. But in the header I can’t configure it to look the way I want it to. I chose, at the moment, the option to use it with the default theme settings (AVADA). For example, see the link: https://leinadcompany.ro/industria-textila/
Is there another option?Regards,
DanSeptember 7, 2021 at 12:09 pm #34566Ernest Marcinko
KeymasterHi Dan,
And what exactly was the problem when you placed it to the header? If it was a styling/floating issue, maybe then I can suggest specific custom CSS or something to resolve those.
September 7, 2021 at 12:36 pm #34570leinad06
ParticipantThis is the problem when I put the short code in the header. It does not stay in line with the menu (see attachment)
September 7, 2021 at 2:07 pm #34576Ernest Marcinko
KeymasterThat looks like a simple vertical alignment related issue only. Can you please send a link to a page where this is visible. Based on that I might be able to suggest a custom CSS.
September 7, 2021 at 2:17 pm #34577September 7, 2021 at 2:24 pm #34578Ernest Marcinko
KeymasterTry this:
li#menu-item-23494>a { display: none; } li#menu-item-23494 { height: 121px; line-height: 121px; } li#menu-item-23494 .asp_w_container { display: inline-block; vertical-align: middle; }This resulted in: https://i.imgur.com/bqtYwWB.png
However this custom CSS will only work with that menu element ID, I could not find any more specific class name on them. So if the menu item changes, this may no longer works.
September 7, 2021 at 2:51 pm #34580leinad06
ParticipantTrue, this will only work if the ID name is not changed. The problem is that the search bar is too short and difficult with long-name products. I’d be happy to find a way for the search bar to be somewhere in the header, 100% of the width of the page
If you click on the search icon on the right side of the navigation menu you will notice about how long I would like the search bar to be.
I am attaching a printscreen for exampleSeptember 8, 2021 at 10:04 am #34596Ernest Marcinko
KeymasterWell, you could try perhaps the compact box layout mode. Using something like this as the configuration: https://i.imgur.com/q1tQr45.png
It might need to be experimented with – especially the top/right values at the bottom to get it in the correct position.September 8, 2021 at 10:21 am #34600leinad06
ParticipantHi,
I will try this option and come back. I find it an interesting approach!
Thanks
September 8, 2021 at 12:54 pm #34607leinad06
ParticipantI tested the proposed solution. It’s not ok because the setting also affects the search bar in the sidebar
September 8, 2021 at 12:57 pm #34608Ernest Marcinko
KeymasterTry creating a new search bar for the header then, it will not affect the other one.
September 8, 2021 at 3:05 pm #34615leinad06
ParticipantOk!
ThanksSeptember 8, 2021 at 4:36 pm #34616leinad06
ParticipantHi,
I set up a new header search bar, I chose compact box layout mode. We made some custom CSS settings and we have this result https://leinadcompany.ro/industria-textila/. The problem is that when the search bar expands, the menu in the header changes. Can you recommend some custom CSS settings?
Thanks
-
AuthorPosts
- The topic ‘"Search" display’ is closed to new replies.