Skip Navigation

[Resolved] On Mobile, I want to put the search and reset button next to each other

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by FelipeP5703 5 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1289881

I am trying to: On Mobile, I want to put the search and reset button next to each other. I tried adding CSS to the div with no luck. I added the width 50% and the display: in-line block.

Link to a page where the issue can be seen: Using your phone, just go to the home page hidden link

I expected to see: The buttons next to each other.

Instead, I got: One below the other.

#1289981

I don't think it will be easy to do this with just one Reset button because of the HTML structure. Instead, I would wrap the bottom Reset button in a div with CSS that hides it at smaller screen sizes. Then add an additional reset button next to the search button, and wrap it in a div with CSS that hides it at large screen sizes. It's okay to have more than one reset button in the markup. Bootstrap has responsive utility classes that can help: https://getbootstrap.com/docs/3.3/css/#responsive-utilities

For example, this is only visible on extra small screens like phones:

<div class="visible-xs-block">[wpv-filter-reset output="bootstrap"]</div>
#1290027

Christian, I have two Views, one for computer and another for mobile.

For the mobile View, I was able to add this CSS code below and got the results I wanted by using inline and float.

.inline {
  display: inline-block;
}
.floatright {
  float: right;
}

Thank you!

My issue is resolved now. Thank you!