#1 How can I change the font size of ALL the text fields inside a modal, as well make it, say 80% of the width of whatever window size it displays on?
I found #wdt-md-modal > div > div but am not quite sure how to center my new width and only on desktops.
#2 How can I hide all of the field titles and hide the column in which they show, OR display them above and not to the left of their associated entry? It's taking up a lot of unnecessary screen space, in particular on mobile devices.
1. This can only be achieved with some custom CSS. At the moment there are no built-in options that would allow you to change the font size within the modal. To change the column labels and the content within the modal, you can use this CSS:
.modal-body .col-sm-3 {
font-size: 20px !important;
}
.modal-body .detailColumn {
font-size: 20px !important;
padding-left: 15px !important;
}
To make the modal be 80% of the page, all you need to add is this:
.modal-dialog {
width: 80% !important;
}
This would work desktops, since width for mobile devices is handled through a media query:
@media screen only and (min-width: 768px) {
.wpdt-c .modal-dialog {
width: 600px;
margin: 30px auto;
}
}
If you need to change the behavior of the modal on smaller screens also, you'd need to change that as well.
2. Hiding headers from the modal is using the same selector:
Hello,
#1 How can I change the font size of ALL the text fields inside a modal, as well make it, say 80% of the width of whatever window size it displays on?
I found #wdt-md-modal > div > div but am not quite sure how to center my new width and only on desktops.
#2 How can I hide all of the field titles and hide the column in which they show, OR display them above and not to the left of their associated entry? It's taking up a lot of unnecessary screen space, in particular on mobile devices.
Thank you!
Hello Sebastian
Sorry for the late response.
1. This can only be achieved with some custom CSS. At the moment there are no built-in options that would allow you to change the font size within the modal. To change the column labels and the content within the modal, you can use this CSS:
To make the modal be 80% of the page, all you need to add is this:
This would work desktops, since width for mobile devices is handled through a media query:
If you need to change the behavior of the modal on smaller screens also, you'd need to change that as well.
2. Hiding headers from the modal is using the same selector:
So, that would hide the headers from the modal, but to hide the columns as well, you would need to actually hide them through column settings.
I hope that helps.
Please note that these customizations are all custom work, which is not included in the provided support for the plugin.
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
Excellent! This is exactly what I was looking for. Thank you Aleksandar.
You're welcome, Sebastian
Glad I could be of service!
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
Is it possible to change to col3 so that my header and detail columns fit side by side. There's plenty of room to fit elements side by side.
Hello Laura
I'm sorry but I don't know what you're referring to. This is Sebastian's ticket, so please open a new ticket and we'll help you there.
Thank you for understanding.
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