cryptotera789
Forum Replies Created
-
Thanks, but I have tried it as well and it did not work out for me. Is there any way to do this by modifying plugin’s core files?
How to create one? Pre purchase questions say that questions about support will not be answered.
Thanks but for some reason this code did not work properly. Now it shows both categories in both searches. And it even returns some pages. Can there be any problem with is_front_page()? Also, I am sure that page and cat IDs are correct. I am using Elementor to add the default Search widget to my pages. This code works perfectly:
function searchcategory($query) { if ($query->is_search) { $query->set('cat','37'); } return $query; } add_filter('pre_get_posts','searchcategory');
- This reply was modified 6 years, 5 months ago by cryptotera789.
Thanks for the reply. However this solution did not work for me. When I go to General Options > General Settings, I do not see “full width or 100% full width layout” option. Instead I only see this: options
Same thing for Blog, there is no such option. Once I increased Main Content Width to 100% and Sidebar to 0%, my sidebar just moved down the page and looks like this.Am I doing everything right?
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?I will do it as a widget. thanks a lot!
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?I will probably add search form on the two pages or make one in the header.
Yes, the search form is the default WordPress search widget.Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?This is my website: https://18.144.4.79
Here I am using custom header that I built with Elementor. It seems that I cannot enable the search icon in the header because of that. But the search bar that I have there where it says “Search here” is the default WordPress search, which I guess would be the same as the one in the header.
Do I have to make any changes?
- This reply was modified 6 years, 5 months ago by cryptotera789.
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?Do you want to just take a look at my page?
It is not fully developed yet because I am still working on it.Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?Great, thanks!
1. I do not have a child theme yet.
2. I am actually using Elementor to build my pages, and I have added a regular WordPress Search to my page. Do I correctly understand your question?:What is the search style that you use? dropdown, full screen or header replace?
- This reply was modified 6 years, 5 months ago by cryptotera789.
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?Tell me if I have correctly understood, when you are on page A, you want that when a user searches for something, the search needs to be only for the custom post type A related to page A, right?
And to do the same for page B and custom post type B.
You don’t want to customize the search page, you just want to control what is displayed in the search page, am I right?Yes you are absolutely right! I need to control which data is presented to the user based on what page he is on!
Exactly like you said: if a person is on page A, there will be a search bar that will allow him to search anything that is related to that page A, and will omit everything else.- This reply was modified 6 years, 5 months ago by cryptotera789.
- This reply was modified 6 years, 5 months ago by cryptotera789.
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?Yes you are absolutely right, it probably is complicated. In fact, I have taken a look at custom queries and how to create your own etc. The thing is that most of the tutorials show you how to create them when basically building your entire website from scratch. Maybe I did not understand it correctly. I haven’t seen any of those tutorials using OceanWP theme. For example, OceanWP’s search.php is already written; so how do I customize it. Do I simply erase all of the file’s content and write my own?
Forum: Themes and Templates
In reply to: [OceanWP] How to customize search results?Thank you for the reply.
But if freelancer can do it, it means I can do it too:) I just need help with knowing where to get started. I decided to ask for help here because I thought you, as theme creators, would know best how to customize your theme.