We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi,
I'm trying to display the Filters in a pop up instead of above the table.
I'm doing it in the following way: Custom CSS, javascript on the page, and html structure in the functions.php. But it doesn't work. Can you help me with it?
The code is below.
CSS
/* Style for the Popup */
#filterPopup {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Popup Content */
.filter-popup-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
/* Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Style for the Button to open the popup */
#filterButton {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
margin: 10px 0;
border: none;
cursor: pointer;
}
#filterButton:hover {
background-color: #45a049;
}
/* Show the popup when the 'show' class is added */
#filterPopup.show {
display: block;
}
JS
<script>
document.addEventListener('DOMContentLoaded', function() {
var filterButton = document.getElementById('filterButton');
var filterPopup = document.getElementById('filterPopup');
var closeButton = document.getElementsByClassName('close')[0];
filterButton.onclick = function() {
filterPopup.classList.add('show');
}
closeButton.onclick = function() {
filterPopup.classList.remove('show');
}
});
</script>
HTML structure in functions.php
function add_my_custom_popup() {
?>
<!-- Button to open the popup -->
<button id="filterButton">Open Filters</button>
<!-- The Popup -->
<div id="filterPopup" class="filter-popup">
<div class="filter-popup-content">
<span class="close">×</span>
</div>
</div>
<?php
}
add_action('wp_footer', 'add_my_custom_popup');
Your thoughts and input would be be much appreciated.
Hello Faraz.
We already have this functionality included in the plugin:
You can use that freely.
Custom code is not included in the provided support for the plugin, so we can't help you with that.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables