Remove search filters on phones

Hello,
I am customizing the Hivepress template.
To remove Filter sidebar I am using these codes.
It works fine on Computer, but not on Phones.
could you guide me?

/*Remove the sidebar from the listing search page*/
.hp-template--listings-view-page .hp-page__sidebar {
  display:none;
}

.hp-template--listings-view-page .hp-page__content {
  max-width:100%;
  flex-basis:100%;
}


/*Remove sidebar from seller search page*/
.hp-template--vendors-view-page .hp-page__sidebar {
  display:none;
}

.hp-template--vendors-view-page .hp-page__content {
  max-width:100%;
  flex-basis:100%;
}

/*End of code

COMPUTER

PHONES (On phones, you still see it.)

Hi,

Please use this CSS snippet How to add custom code snippets - HivePress Help Center :

.hp-template--listings-view-page .hp-button--mobile.hp-button--listing-filter{
	display: none !important;
}

Please note that it can require further customization.

ā€‹I hope this is helpful to you.

1 Like

Yes it worked
thank you :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.