Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mwp_bootstrap_table_responsive() {
- if (is_singular()) {
- ?>
- <script>
- jQuery(document).ready(function($){
- if ($("table").hasClass("table")) {
- $('table').wrap('<div class="table-responsive"></div>');
- }
- });
- </script>
- <?php
- }
- }
- add_action('wp_footer', 'mwp_bootstrap_table_responsive');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement