Looking for support? You can access the support system via your account.
- This topic has 17 replies, 2 voices, and was last updated 5 years, 2 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Current menu item
Hello,
I have a problem with my menu.
When I am on a page, it is highlighted in the menu via css for “current menu item”
When all the parameters are added to the url, it seems to fail to detect that it still is on the page that should be highlighted in the menu.
How do I solve that?
Best regards,
Johannes
Can you give me an example of a page correct, and that same page with query strings, as two URLs?
Oh, wow. I found my mistake. It works. It just didn’t work because my menu item is directed to a url that already has a parameter defined. That leads me to another question:
I need the results to be empty when I enter the page. Thats why I directed the menu item to a nonexisting category, like this:
http://khuf.eu/meine-wege/?_sft_category=leer
Is there any way to have an empty results page, when you first enter it?
right now it shows all results:
http://khuf.eu/meine-wege/
i dont want that.
best regards! Johannes
Yes, that is totally possible. You need to edit the results.php template file you are using, like this:
global $searchandfilter;
$sf_current_query = $searchandfilter->get(36613)->current_query();
if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
echo '<div>Nothing to see here folks!</div>';
} else {
// your current results.php code here
}
sounds great, but I don’t know where to put it. i use “post grid” – but i can’t find the php i have to put this in. :/
also i am back to the original problem:
menu item marked: http://khuf.eu/meine-wege/
suddenly not marked: http://khuf.eu/meine-wege/?_sft_category=kein-schulabschluss&_sft_post_tag=einfacher-hauptschulabschluss
😀 i solved that last one by simply editing the menu once again. url is the sae, but wordpress is suddenly satisfied.
sorry for the back and forth.
I still dont know where to put the code you gave me.
i use “post grid” – but i can’t find the php i have to put this in. :/
The form on this page:
I using our Shortcode display method (as set on the Display Results settings tab in the form design. It is not set up for Post Grid?
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy