Skip Navigation

[Resolved] Search form showing twice

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.88 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by maiS 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1796731

Hi there,
I have 2 issues:

1)
On this site: (hidden link) i have a search form where i only want the search part to show at the top and then I have the results on another page. But on the buttom of the page, the search form shows again. How do i remove it?

2)
On my mobile phone the 2 search bars in the top row are not looking good. How do i make them fit to the screen?

#1796927

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mai,

Thank you for getting in touch.

For the issue #1 I will need to see the screenshots of the code that you've added to the page template.

It's quite possible that you've added only the search bar but inserted the results view without specifying that you want the layout only. So I need to know exactly the view code that you are using on this page.

For issue #2 you can resolve this by using some mobile css.

@media only screen and (max-width: 600px) {
  .js-wpv-filter-trigger{
  width: 80%;
  }
}

Please let me know if this helps.
Thanks,
Shane

#1801265

Hi Shane,

1) I don't know how to take screenshots of the code since I did not add a piece of code. I just added the search view element. If you want a login you can check? Or else: Can you guide me in what code you need?

2) thanks I will try it 🙂

#1801285

Hi Shane,

for #2 - where do I put the CSS code? Just in my theme --> advanced --> css or where?

#1801891

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mai,

Yes please provide me with the login for the site.

There is a custom code section in the view block.

When you click on the view block you should see a CSS and A JS section. Just add it to the css section.

Thanks,
Shane

#1803539

Hi Shane,

I can't seem to find the area for the CSS. I guess i am doing something wrong. Can you help me with that too?

#1803635

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-10-07 at 2.46.14 PM.png
Screenshot 2020-10-07 at 2.46.06 PM.png

Hi Mai,

If you use the block navigation and Select the view you should see the css section in the Blocks tab. See Screenshot

For the search view I see that you are displaying another search view with the same information on the same page.

Is it that you just want to display a Layout of all the posts and then the search will redirect users to the page where the results are at ?

Please let me know.
Thanks,
Shane

#1803655

okay i will try again.

Oh i see - but basically i need to remove the search form in the button and just show the search form in the top and then just a normal view with all the available badminton camps

#1803657

Hi Shane,

When i press the view i only see stuff like this - no section for custom css. This is what i see:

View
A View is a list of items that you build and design. With Views you can create simple lists, grids, tables and custom searches.

View
Search for Badmintoncamps

Cache View

Custom Search Settings
What do you want to include here?
Both the search form and results
Only the search form
Only the search results
The first option will display the full View. The second option will display just the form, you can then select where to display the results. Finally, the third option will display just the results, you need to add the form elsewhere targeting this page.

Where do you want to display the results?
In other place on this same page
On another page
Page
Badmintoncamps search result (#769)

Secondary sorting

Secondary Order by

Secondary Order

#1803659

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mai,

Here is a short video to demonstrate the process.
hidden link

Thanks,
Shane

#1804153

Hi Shane,

Unfortunately we are just not talking about the same view and your code didn't work - probably because I set it in the wrong view. And I can not access the CSS area on the top search view. The view you show me on the video and the search view on the top of the page on the cover image are not connected. I need to adjust the search view on the top.
And then I need the search bars / the search function on the bottom view - below the camps - to go away.

Can you help?

Thanks.

#1804163

I should have sent you my login earlier in this conversations as you asked - did you receive it? Then you can login at see what I mean.

#1804723

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mai,

The css should be working now. I had to add !important to it to overwrite the existing width settings for mobile.

Secondly the issue with the second search bar appearing should now be resolved.

Thanks,
Shane

#1804949

Hi shane,

thank you so much! Do you know why no one are answering my ticket here? - see this link: https://toolset.com/forums/topic/after-updating-a-lot-of-things-isnt-working-urgent/

Thanks

#1804977

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mai,

The reason is because we are extremely busy in the forums at the moment.

Right now we also short staffed because of vacations etc, so the waiting times for responses will be a bit longer than the usual.

Thanks,
Shane