Forums › Forums › Search & Filter Pro › Ajax not refresh
Tagged: ajax, post type archive
- This topic has 15 replies, 2 voices, and was last updated 8 years, 7 months ago by Anonymous.
-
Anonymous(Private) March 28, 2016 at 1:39 am #40637
Hi,
I have a custom template (file example archive-artist.php).
When you perform a search executed properly in ajax.
If we make another request to the search engine, not refresh.
Plugin settings:
Display results method: Post Type Archive.I checked the documentation configuration:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/as-a-post-type-archive/
why not work?
Sorry for my English.
Trevor(Private) March 28, 2016 at 4:38 pm #40702Hi, the issue was easy to spot, but I had to think how to resolve it. Your settings for Display Results -> Results Container was set at
#ajax_bc
As well as the results container, this also encloses the search form, and this is not allowed.
Normally, you would set the results container to
#content
as is the default.# means that this is an id selector, and an id should only ever be used once on a page, and so must be unique. BUT …
id="content"
appears twice on your page!!! Is this your coding or the theme’s? If it is the theme, please contact the author to get this fixed.So, for now I have set the results container to nested id’s
#main #content
which IS unique.Let me know if this is resolved for you and if I can close this?
Anonymous(Private) March 28, 2016 at 6:27 pm #40738Thanks for your reply.
The problem is that I need to load the title, so #content #main not work
Access the web http://clon.buscoconcierto.com/artistas/, click pop and “leer más”.
In this new page, the browser must load all the div “ajax_bc”.
If you set #content #main, the header is not changed.
What you have to edit files to update the theme with ID ajax_bc?
Thanks for your time
Trevor(Private) March 28, 2016 at 6:48 pm #40739Hi
OK, I see. What theme do you use? Maybe next time a more flexible one that does not have these issues?
So, we would need to re-write S&F to ignore the search form inside the content element. I think it can be done, but it will take time, which we do not have for the next few days. I will speak to Ross and ask him. BTW, you said
#content #main
, but the order is important. It must be#main #content
. -
AuthorPosts