New answers tagged

0

It's not understandable for me, but the second definition works now. No idea, why it didn't work before, but I guess, somewhere I made a small mistake. Sorry, for my useless post ;)


0

Will this work for you? Make sure to enable jQuery before execute it. <?php add_action( 'wp_footer', 'add_js_to_wp_footer' ); function add_js_to_wp_footer(){ ?> <script type="text/javascript"> $(function() { $('table').wrap('<div class="table-responsive"></div>'); }) </script> <?php } ?>


Top 50 recent answers are included