Hi, when you enter the service listing page by clicking ‘‘Service’’ in navi bar everything works fine and the service item changes color to red to show you on what page you are. But when you enter the same page by clicking on search button, the ‘‘Service’’ item in manu bar remains unchanged
Hi,
Yes, the search results page is not considered the Listings (Services) page, search result pages have many different URLs depending on the search filters so the menu item is not highlighted in the current version (WordPress detects it as a different URL).
Hi, thanks for the explanation. I have one more thing that need to be done. I wanted to restyle service listing block for mobile phones and I user snippet bellow to affect only design on that page and not design on request listing page:
function add_custom_css() {
if (is_page(155)) {
?>
<style>
@media only screen and (max-width: 47.99em) {
.hp-listing--view-block{
box-shadow: 0 5px 30px rgba(7,36,86,.075);
}
.hp-listing {
box-sizing: border-box;
flex-direction: row;
flex-wrap: wrap; ...
But now when I enter page with service listings by clicing search button, there is the old design of the listing. Do you know how I can make this css to affect service listing blocks on page entered trough the search bar?
Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY