Forum Replies Created
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
I have already done the test with twenty twenty one and indeed it works well, there must indeed be a problem with my personalized theme, I cannot share the link of my site because I work in localhost, but I can share screenshots of my code. I’m a junior web developer and I wanted to take care of page redirection myself, so what do you mean by custom code? What code and where?
The ajax search gives me many results! It works great! But if I press Enter, it returns me to the front-page with no results. I would like to redirect the results to another page by default
Attachments:
You must be logged in to view attached files.The “reset” option works great!! Thanks again 🙂
But I have not yet solved the problem of the search which is not displayed on the front page and of being able to redirect it!I made a mistake in choosing my attachment.
Attachments:
You must be logged in to view attached files.OK ! But I have no results displayed on my homepage! How can we change this default behavior?
I also discovered another problem in the meantime, the dynamic search with AJAX shows me, in the search results, pages that no longer exist… How can we “reset” this? I tried clearing my browser cache but that didn’t change anything. I also disabled and re-enabled the AJAX search but the result remains the same 🙁Attachments:
You must be logged in to view attached files.It works great with “AJAX Enable” Many thanks! However, I still have the same problem when the user presses Enter! It always returns to the front page
Hello 🙂
So, I tested by changing the theme and that answered some of my questions:
Does typing a search in the field dynamically display a result just below as soon as the user writes characters: No
Is this normal: I don’t know…
Is there a result when I press enter: Yes
In what form? In a new page!On the other hand the search field is not displayed everywhere while the shortcode is in my header.php but I guess that the change of theme has something to do with it…
By doing the same search in the same place of the site with my theme, when I press enter, it sends me to the front-page
So, based on this test, the problem would therefore come from the theme? But after knowing how to fix this problem…
Here is a image of the configuration: “Post Types”
Attachments:
You must be logged in to view attached files.Is the textbox built-in content area or excerpt area or custom field?
This is a custom field create with ACF
Have you configured the search form to search this custom post type?
You are talking about the “extra” in the Search Forms part ? I left a lot of basic settings that seemed very good to me and if you look at the image you will see that I have validated the search for customs fields.
Could you please share the screenshots having English text and also try adding and searching plain English words such as team?
Of course ! You will also find images concerning the other two questions…
That said, I’m not sure how it works! Does a result field appear when you enter at least 1 character, or does the result field appear only after validating the search, by pressing enter? Because I have no result field that appears in both casesAttachments:
You must be logged in to view attached files.thank you for your reply ! Unfortunately I can’t give you a url address because I’m working on this project in localhost.
For the words, it’s on a page in a text box (it’s an article created by a custom post type)
As you can see in image 2, the search word “l’équipe” is in the title and also in the text. I tried with different words which are also in the text but the result is the same…
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login