Skip Navigation

[Resolved] Select multiple filter box spacing and page scrolling on click

This support ticket is created 4 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by andrewD-10 4 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1417989

Hi.
1- i'm using taxonomy filter & type of control is select multiple in my many views. It always take up more space around its box and really want to get rid of that empty space. hidden link .
im using very basic css to make the filter portion as a box hidden link. Please help me to eliminate this space.
2- i also need help to scroll page down to the table, when i click submit button after selecting filter options. Is there any JS required of so then please help how. hidden link
Also same scrolling down to the table, whenever a visitor open/enter into the page for the first time.

Thanks in advance.

#1418417

Hi Andrew,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way forward, I'll need to see how these items are set up.

Can you please share temporary admin login details, along with the link to the page(s) where these items can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1423109

Hi Andrew,

Thanks for sharing the admin access.

1. The extra space that is shown at the bottom of the multi-select field, is a result of minimum height style coming from the theme.

Note: To check which CSS code is applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
hidden link

To make it stick to a specific height, you can override the theme's styles using custom CSS code, for example:


select.js-wpv-filter-trigger[multiple] {
min-height: 70px !important;
height: 70px !important;
overflow-y: scroll;
}

2. To automatically scroll to the table on the page load, you can include the following custom JS code in your view:


jQuery(document).ready(function () {
    scrollToTable();   
});

function scrollToTable() {
    jQuery('html, body').animate({
        scrollTop: jQuery('table').offset().top
    }, 'slow');
}

Note: For a view that is set to update results using, AJAX (without reloading the page), you'll also need to include this script's function name "scrollToTable" in the field "will run after updating the results", so that it also executes when the search results are updated.
( screenshot: hidden link )

3. You can assign different border values to top, right, bottom and left sides, as explained in these guides:
hidden link
hidden link

4. To limit the page's content to a specific width, so that an equal amount of space is available on each side, you can wrap it in a special div container with a class.

Example:


<div class="special-container">
Content
</div>

Using custom CSS code, this container can be set to limit to a specific width.

Example:


.special-container {
max-width: 80%;
width: 80%;
margin: 0px auto;
}

I hope this helps and for future reference, please note that as per our support policy ( https://toolset.com/toolset-support-policy/ ), only one question or issue can be addressed through a single ticket.

You're welcome to open a new ticket for each new question or concern.

regards,
Waqar

#1427041

Your help for more then one issue is appreciated here.
Thanks a lot !